Jump to content

Archived

This topic is now archived and is closed to further replies.

wastedthelight

If MySQL is blank, Don't Display?

Recommended Posts

Hi, i need some help there.

I'm building a membership system and want it to be if the user doesn't type in any information, leaving the database entry empty, then it doesn't display on the profile

[code]<B>Biography:</b> $profile_info[bio]<br>[/code]

if blank, that whole line isn't displayed. otherwise it is.

Thanks.

Share this post


Link to post
Share on other sites
[code=php:0]
if ($profile_info['bio'] != '') {
  echo "<B>Biography:</b>{$profile_info['bio']}<br>";
}
[/code]

Share this post


Link to post
Share on other sites

×

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.