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 Quote 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']; } Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.