i need to have null date from php and send to mysql
how to make a null date so that i could insert it the database


it should be in the format '00-00-0000';

just put '00-00-0000' in a variable then use this variable as you insert it in a database.

$var='00-00-0000';
$query="Insert into table1 values ('$etc','$var')";
$result=mysql_query($query);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.