Hi hope someone can help me
How can i update a date field to NULL so that i have 0000-00-00 in the date field
i have the following code but it's not working i tried a lot of things but nothing wil work
if($_POST['geboortedatum'] == "")
{
$date = NULL;
$updatequeryz = "UPDATE stamboom_dohmen SET geboortedatum='$date' WHERE id='$idpersoon'";
mysql_query($updatequeryz) or die (mysql_error());
}
Thanks in advice John