You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

8 lines
377 B

<?php
// Require DB Connection
require_once('connect.php');
$creater = substr($_COOKIE["token"], 0, strpos($_COOKIE["token"],"."));
// Add Event
$sth = $dbh->prepare("INSERT INTO events (title, accountid, events.date, description, color) VALUES (?,?,?,?,?)");
$sth->execute(array($_POST['title'], $creater, $_POST['date'], $_POST['description'], $_POST['color']));