Solar Posted March 30, 2010 Share Posted March 30, 2010 Hello and before I say anything, thankyou for your time. I have many different things on my user's profile page but I would like to expand it. The user profile displays there username, a quick bio, a profile picture, and so on... I would like to display something like the following; echo "<a href=\"".$req_user_info['facebook']."\"><img src=\"facebook.png\"></a>"; My question is; Is it possible for a person who hasn't edit there profile for the facebook field to hide on their actual profile page until they fill it out? And how would I go by doing so? Quote Link to comment https://forums.phpfreaks.com/topic/197002-echo-sql/ Share on other sites More sharing options...
runnerjp Posted March 30, 2010 Share Posted March 30, 2010 You will use an if statement if ($req_user_info['facebook'] !="") { echo "<a href=\"".$req_user_info['facebook']."\"><img src=\"facebook.png\"></a>"; } so if the $req_user_info['facebook'] is not blank show it Quote Link to comment https://forums.phpfreaks.com/topic/197002-echo-sql/#findComment-1034204 Share on other sites More sharing options...
Solar Posted March 30, 2010 Author Share Posted March 30, 2010 Works Perfectly, thankyou for your help! Quote Link to comment https://forums.phpfreaks.com/topic/197002-echo-sql/#findComment-1034250 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.