Browse Source

bugfix

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

+ 3
- 3
databaseOperations.php View File

@ -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,


Loading…
Cancel
Save