Jump to content

If my record is null, Can i show that column to N/A


xubi

Recommended Posts

Hi,

 

Just to add a bit of checking that would fill most situations Phone numbers may contain alternate characters so the is_numeric function will return false positives

 

so I would use the following

 

<td>Phone : </td><td><?php echo is_null($Num) ? 'N/A' : $Num;?></td>

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.