For some reason my post value of the bookingDate is not getting put into the database and I”m not sure why.
Inside the console here’s the post variables.
bookingDate 04/25/2012 14:36
inside the database
bookingDate datetime
/**
* Book Event
*
* @param string
* @param integer
* @param date
* @param string
* @param string
* @param text
* @return bool
*/
function bookEvent($eventName, $label, $bookingDate, $location, $arena, $introduction)
{
$data = array(
'eventsNamesListID' => $eventName,
'label' => $label,
'bookingDate' => $bookingDate,
'location' => $location,
'eventsArenasListID' => $arena,
'eventsStatusesID' => 1,
'introduction' => $introduction
);
$this->db->insert('events', $data);
return true;
}
Yeah… and what about a proper datetime 2012-04-25 14:36:00 ?