Forum Moderators: coopster

Message Too Old, No Replies

mysql not empty check

         

FnTm

7:37 am on Aug 27, 2007 (gmt 0)

10+ Year Member



HI again.

This time I would like to have mysql to check a field, and if it is empty, display an image.

Is there a check syntax for this kinda stuff?

P.S Is there a mysql question category anywhere here?

dreamcatcher

7:42 am on Aug 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a mysql question category anywhere here?

[webmasterworld.com...]

dc

FnTm

7:31 am on Aug 28, 2007 (gmt 0)

10+ Year Member



BUMP!

Isnt there anyone that knows?

dreamcatcher

8:37 am on Aug 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



$query = mysql_query("SELECT * FROM table") or die(mysql_error());

while ($row = mysql_fetch_assoc($query))
{

if ($row['column_name']!='')
{
// display image
}

}

dc