I have the following code:
function dbInsert()
{
global $dbcon, $dbtable;
global $inputData;
$sqlQuery = \'INSERT INTO \' . $dbtable . \' (id_author
You can use a date/time column
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-types.html
and use the STR_TO_DATE function:
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_str-to-date
Or you can convert it to a unix timestamp and insert this one in an INT Column.
You could take a look at the STR_TO_DATE function. It takes a format parameter. The allowed values for the format parameter are described here.
$sqlQuery = 'INSERT INTO ' . $dbtable . ' (id_author, date, title, description)' .
' VALUES (?, STR_TO_DATE(?, \'%d.%m.%Y\'), ?, ?)';