Jump to content

if($row['.....) = nothing?


Mutley

Recommended Posts

Actually you are assing $row['blah'] with zero with the posted code. You use use two equal signs together, or use the empty function to check whether the the variable holds an empty value.
[code=php:0]if(empty($row['field_name_here']))
{
    echo 'field_name_here is empty!';
}[/code]
Link to comment
https://forums.phpfreaks.com/topic/19357-ifrow-nothing/#findComment-83979
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.