Jump to content

[SOLVED] NULL values


dreamwest

Recommended Posts

Simple query but i need to select rows which have NULL in the field:

 

$result = mysql_query("SELECT * FROM photo WHERE download_pics= '0' and seo_pics=' ' ") or die(mysql_error());

 

So all seo_pics rows/fields are NULL

 

But seo_pics=' '  dosent work

 

Ive tried seo_pics='NULL' but no luck

Link to comment
https://forums.phpfreaks.com/topic/144447-solved-null-values/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.