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