From 2d9338df9cd9d265a06c91f6477ce2f1d260bcb6 Mon Sep 17 00:00:00 2001 From: TheMrNomis Date: Thu, 31 Mar 2016 09:59:04 +0200 Subject: [PATCH] bugfix --- databaseOperations.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/databaseOperations.php b/databaseOperations.php index 0973ca1..a63cf43 100755 --- a/databaseOperations.php +++ b/databaseOperations.php @@ -284,11 +284,11 @@ function addEvent($db, $titre, $catArray, $localisation, $dtstart, $dtend, $desc try { $db->beginTransaction(); - $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 = $db->prepare('INSERT INTO event(event_title, event_localisation, event_dtstart , event_dtend, event_description, event_url, event_urlImage, event_contact) VALUES(:title, :localisation, :dtstart, :dtend, :description, :url, :urlImage, :contact)'); $request->execute(array('title'=>$titre, 'localisation'=>$localisation, - 'dtend'=>date("Y-m-d H:i:s",$dtstart), - 'dstart'=>date("Y-m-d H:i:s",$dtend), + 'dtstart'=>date("Y-m-d H:i:s",$dtstart), + 'dtend'=>date("Y-m-d H:i:s",$dtend), 'description'=>$description, 'url'=>$url, 'urlImage'=>$urlImage,