I am inserting records with PHP, and having a problem with MySql not getting the date in a Date field.
I am using this in the insert code:
$ORDD=date("F j, Y");
But when I look at the record after inserting, the field just show:
0000-00-00
My obvious thought is a date format issue. I could possibly cheat and make the column Varchar, but I will need to query dates later.
Any advice please, thanks
I am using this in the insert code:
$ORDD=date("F j, Y");
But when I look at the record after inserting, the field just show:
0000-00-00
My obvious thought is a date format issue. I could possibly cheat and make the column Varchar, but I will need to query dates later.
Any advice please, thanks