I am working with PHP for the first time and I need a form
To insert some details and a date.
When I check the mysql database the date is displayed as 0000-00-00
Here is my php script:
<?
$query = "Insert into
computers(id,itnumber,hdd,processor,ram,monitor,os,invoice,datebought) values" .
"(NULL,'$itnumber','$hdsize','$processor','$ram','$monitor','$os','$invoice'
,'$datebought')";
mysql_query($query) or die (mysql_error());
?>
Everything else works fine. When I enter the date into mysql itself it works
fine.
Thanks