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 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. 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 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
Archived
This topic is now archived and is closed to further replies.