Jump to content

not null fields


pietbez

Recommended Posts

hi, i have a small problem here,

this code would work fine if the photourl table had numerical data, but the photourl table holds url info.

how can i change the code so that only those entries that have a photourl entries are read.

 

some of my photourl fields are empty, i want them exluded from the query.

 

$do=mysql_query ("SELECT * FROM links WHERE item = $item and photourl > 0" );

Link to comment
https://forums.phpfreaks.com/topic/138894-not-null-fields/
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.