Jump to content

[SOLVED] how to determine a null


zwiebelspaetzle

Recommended Posts

Hello,

 

I'm trying to print out contact info without lots of blank lines.  I've tried

 

if ( !is_null( $row['PHONE'] ) )

echo $row['PHONE'] . "<br />";

if ( !is_null( $row['E_MAIL'] ) )

echo $row['E_MAIL'] . "<br />";

if ( !is_null( $row['WEBSITE'] ) )

echo $row['WEBSITE'];

 

but it returns each line, regardless of whether the data field is null.  I've also tried it with isset($row['x']), to no avail.  If there a certain function or property to use with mysql data arrays?

 

Thanks,

--Chris

Link to comment
https://forums.phpfreaks.com/topic/120284-solved-how-to-determine-a-null/
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.