wastedthelight Posted September 27, 2006 Share Posted September 27, 2006 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. Quote Link to comment Share on other sites More sharing options...
trq Posted September 27, 2006 Share Posted September 27, 2006 [code=php:0]if ($profile_info['bio'] != '') { echo "<B>Biography:</b>{$profile_info['bio']}<br>";}[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.