Jump to content


Photo

If MySQL is blank, Don't Display?


  • Please log in to reply
1 reply to this topic

#1 wastedthelight

wastedthelight
  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts

Posted 27 September 2006 - 10:35 PM

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

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

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

Thanks.

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 27 September 2006 - 10:42 PM

if ($profile_info['bio'] != '') {
  echo "<B>Biography:</b>{$profile_info['bio']}<br>";
}





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users