display content only if the column is NULL

I need to show content if the live column is NULL. I can do this the other way (as below) but can figure out how to display content only if the live column is NULL

Any ideas?


    <?php if(!empty($row_propertyInfo['live'])): ?>
    
    
content to show if NULL

<?php endif; ?>

Open in new window

BrighteyesDesignAsked:
Who is Participating?
 
zappafan2k2Commented:
I would look at this the other way around.  If a property is live, then the value is 1, right?  So how about
<?php if ($row_propertyInfo['live'] != 1): ?>
content
<?php endif; ?>

Open in new window

0
 
Julian HansenCommented:
I must be missing somethign - why can't you do this
<?php
if(empty($row_propertyInfo['live'])): ?>
       
content to show if NULL

<?php endif; ?>

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.