Re: [PHP-DB] default value for date.

2002-08-19 Thread Adam Williams
set a default value that isn't possible (like -99-99 99:99:99) and then have an if statement saying if ( $row[date] == '-99-99 99:99:99' ) { $row[date] = '';} Adam On Mon, 19 Aug 2002, Smita Manohar wrote: > i'm using php with mysql. some tables in database have

[PHP-DB] default value for date.

2002-08-19 Thread Smita Manohar
i'm using php with mysql. some tables in database have date fields for which i have not set any default value. while displaying the values from tables, if any record has null value for date field then it displays 0-00-00. what i need to do to display null value or spaces instead of zeros.