PHPrev Posted December 14, 2008 Share Posted December 14, 2008 Hello! I want to know how to get that from MySQL How to show it at index.php thanks Quote Link to comment https://forums.phpfreaks.com/topic/136940-how-to-get-info-from-mysql/ Share on other sites More sharing options...
wildteen88 Posted December 14, 2008 Share Posted December 14, 2008 Get what from MySQL? To get data from a MySQL table just use a standard SELECT Query // send a query to MySQL $sql = 'SELECT * FROM your_table'; $result = mysql_query($sql); // get results while($row = mysql_fetch_assoc($result)) { echo '<pre>'.print_r($row, true).'</pre>'; } Quote Link to comment https://forums.phpfreaks.com/topic/136940-how-to-get-info-from-mysql/#findComment-715209 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.