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. Link to comment https://forums.phpfreaks.com/topic/22307-if-mysql-is-blank-dont-display/ 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] Link to comment https://forums.phpfreaks.com/topic/22307-if-mysql-is-blank-dont-display/#findComment-99923 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.