It states that the DATETIME function stores it as:
'YYYY-MM-DD HH:MM:SS'
Which is what I want.
But I am not sure how to put it in a query.
The query I am using is:
$query2 = "INSERT INTO custord (custid, ortime, numdvd, carriage, orvalue)" .
"VALUES ('$custid', 'DATETIME', '$NoDVD', '$Tx', '$Total')";
As you can see I am populating the table using PHP variables. But if i can just enter the data and time via this mySQL function then that would be fine. But I am not sure how to call this function within my PHP.
Thanks for your help, its much appreciated
Reg
Gary