posted July 09, 2000 04:48 AM
I'm using this sql statement to retrieve records from my table where the field view does not equal 1 (view is an INT field size 4)$sql = mysql_query("select * from mytable where view !=1 order by date_written desc");
But it doesn't work - it returns no records.
I changed it to this and this works:
$sql = mysql_query("select * from mytable where view ='' OR ISNULL(view) order by date_written desc");
But I thought the first one would work - can anyone put me right as to why the first select query doesn't work?
TIA, Tony