|
|
@ -284,11 +284,11 @@ function addEvent($db, $titre, $catArray, $localisation, $dtstart, $dtend, $desc |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
$db->beginTransaction(); |
|
|
$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, |
|
|
$request->execute(array('title'=>$titre, |
|
|
'localisation'=>$localisation, |
|
|
'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, |
|
|
'description'=>$description, |
|
|
'url'=>$url, |
|
|
'url'=>$url, |
|
|
'urlImage'=>$urlImage, |
|
|
'urlImage'=>$urlImage, |
|
|
|