jonoc33 Posted October 13, 2007 Share Posted October 13, 2007 Hey guys, Need to know how to echo an entire column in a MySQL table. I've tried various things but they only echo the one at the top. Jono Link to comment https://forums.phpfreaks.com/topic/73072-solved-showing-everything-in-a-column-in-a-mysql-table/ Share on other sites More sharing options...
Fadion Posted October 13, 2007 Share Posted October 13, 2007 u mean: $results = mysql_query("SELECT column FROM table"); while($values = mysql_fetch_array($results)){ echo $values['column']; } Link to comment https://forums.phpfreaks.com/topic/73072-solved-showing-everything-in-a-column-in-a-mysql-table/#findComment-368491 Share on other sites More sharing options...
jonoc33 Posted October 13, 2007 Author Share Posted October 13, 2007 Thanks, thats it. Link to comment https://forums.phpfreaks.com/topic/73072-solved-showing-everything-in-a-column-in-a-mysql-table/#findComment-368492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.