i have a textbox that asks for the year but allows user to skip this field...the problem is when they leave it blank,a '0' is inputted into the year column... how do i leave it blank or input NULL in the column if nothing is entered in that field?
i've tried this...and it still leaves it as 0.
if (!isset($year) { $year='NULL' }
mysql_query("INSERT into table values(NULL, '$year');