Vazzoom Posted August 10, 2011 Share Posted August 10, 2011 I discovered I can personalize my site for every user by doing something like this - except it doesn't work lol Help? $sql = "SELECT utype FROM users_info"; <?php if ('utype'=='10') { <table width="100%" height="100%" align="center"> <tr> <td align="left"> <a href="http://www.vazzoom.com/chat.php">Chat Now!</a> </td> </tr> </table> } else { Chat is not available. } ?> This is only a sample, not live code, but I truly have no idea what I'm doing =P Quote Link to comment https://forums.phpfreaks.com/topic/244377-grabbing-db-data-and-testing-if-it-meets-certain-requirement-if-then-else/ Share on other sites More sharing options...
trq Posted August 10, 2011 Share Posted August 10, 2011 There are literally thousands of tutorials around that cover executing a database query with php. You should find one and read it. Quote Link to comment https://forums.phpfreaks.com/topic/244377-grabbing-db-data-and-testing-if-it-meets-certain-requirement-if-then-else/#findComment-1255157 Share on other sites More sharing options...
Vazzoom Posted August 10, 2011 Author Share Posted August 10, 2011 Thanks! I'll tell everyone how helpful phpfreaks is. Have a great day Quote Link to comment https://forums.phpfreaks.com/topic/244377-grabbing-db-data-and-testing-if-it-meets-certain-requirement-if-then-else/#findComment-1255487 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.