naju 0 Junior Poster in Training 17 Years Ago 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'; php 0 0 Share ryan_vietnow 13 Posting Pro 17 Years Ago 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); 0 0 Share Share Facebook Twitter LinkedIn Reply to this topic 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. Sign Up — It's Free!
ryan_vietnow 13 Posting Pro 17 Years Ago 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); 0 0 Share