Hi
I have choosen "date" data type in my MYSQL table. Now I want to obtain the date from the syytem using PHP and insert it into the my table. In what format i need to have the date so that "date"
data type in MYSQL accepts it, I am the doing the following which I believe is not correct.
$orderdate=date("l dS of F Y h:i:s A");
$resultcat= mysql_query("insert into product_order values ('$fullname','$streetaddress' ,'$orderdate')")
Nothing get inserted for the date all I see 0000-00-00
Thanks
I have choosen "date" data type in my MYSQL table. Now I want to obtain the date from the syytem using PHP and insert it into the my table. In what format i need to have the date so that "date"
data type in MYSQL accepts it, I am the doing the following which I believe is not correct.
$orderdate=date("l dS of F Y h:i:s A");
$resultcat= mysql_query("insert into product_order values ('$fullname','$streetaddress' ,'$orderdate')")
Nothing get inserted for the date all I see 0000-00-00
Thanks