Hi,
I am trying to get MySQL to record a date using PHP. Anyway - Heres the code I am trying.
VALUES ('NULL','$firstname', '$lastname', '$email', 'NULL')
");
Anyways - The code works, but the date turns out as '0000-00-00' all the time...
Any tips? Do I change it from Null to something else? Thanks
------------------
Michael Bray
Review your webhost or find a new one.
www.webhostarea.com
Links SQL User
------------------
I am trying to get MySQL to record a date using PHP. Anyway - Heres the code I am trying.
Code:
mysql_query ("INSERT INTO phpusers (users_id, firstname, lastname, email, joined) VALUES ('NULL','$firstname', '$lastname', '$email', 'NULL')
");
Anyways - The code works, but the date turns out as '0000-00-00' all the time...
Any tips? Do I change it from Null to something else? Thanks
------------------
Michael Bray
Review your webhost or find a new one.
www.webhostarea.com
Links SQL User
------------------