Browse Source

addEvent

master
AmarOk 10 years ago
parent
commit
9d5959a709
2 changed files with 9 additions and 8 deletions
  1. +1
    -0
      databaseOperations.php
  2. +8
    -8
      eventAdded.php

+ 1
- 0
databaseOperations.php View File

@ -251,6 +251,7 @@ function addEvent($db, $titre, $localisation, $dtstart, $dtend, $description, $u
'url'=>$url,
'urlImage'=>$urlImage,
'contact'=>$contact));
echo("debug");
$request->closeCursor();
}
catch(PDOException $e)


+ 8
- 8
eventAdded.php View File

@ -2,14 +2,14 @@
include_once('databaseOperations.php');
include('datetimeOperations.php');
$db = connect();
$titre = $_POST(['title']);
$localisation = $_POST(['address']);
$dtstart = $_POST(['dtstart']);
$dtend = $_POST(['dtend']);
$description = $_POST(['description']);
$url = $_POST(['site']);
$urlImage = $_POST(['urlImage']);
$contact = $_POST(['contact']);
$titre = $_POST['title'];
$localisation = $_POST['address'];
$dtstart = $_POST['dtstart'];
$dtend = $_POST['dtend'];
$description = $_POST['description'];
$url = $_POST['site'];
$urlImage = $_POST['urlImage'];
$contact = $_POST['contact'];
addEvent($db, $titre, $localisation, $dtstart, $dtend, $description, $url, $urlImage, $contact);
?>


Loading…
Cancel
Save