Browse Source

bugfix

master
n0m1s 10 years ago
parent
commit
f037141d0e
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      databaseOperations.php
  2. +2
    -2
      eventAdded.php

+ 2
- 2
databaseOperations.php View File

@ -253,8 +253,8 @@ function addEvent($db, $titre, $localisation, $dtstart, $dtend, $description, $u
$request = $db->prepare('INSERT INTO event(event_title, event_localisation, event_dtstart , event_dtend, event_description, event_url, event_urlImage, event_contact) VALUES(:title, :localisation, :dstart, :dtend, :description, :url, :urlImage, :contact)');
$request->execute(array('title'=>$titre,
'localisation'=>$localisation,
'dtend'=>date("Y-m-d hh:mm:ss",$dtstart),
'dstart'=>date("Y-m-d hh:mm:ss",$dtend),
'dtend'=>date("Y-m-d H:i:s",$dtstart),
'dstart'=>date("Y-m-d H:i:s",$dtend),
'description'=>$description,
'url'=>$url,
'urlImage'=>$urlImage,


+ 2
- 2
eventAdded.php View File

@ -4,8 +4,8 @@ include('datetimeOperations.php');
$db = connect();
$titre = $_POST['title'];
$localisation = $_POST['address'];
$dtstart = $_POST['dtstart'];
$dtend = $_POST['dtend'];
$dtstart = strtotime($_POST['dtstart']);
$dtend = strtotime($_POST['dtend']);
$description = $_POST['description'];
$url = $_POST['site'];
$urlImage = $_POST['urlImage'];


Loading…
Cancel
Save