cpd Posted November 3, 2008 Share Posted November 3, 2008 Could someone please tell me how i can get all the information out of one column and then echo each individual row but for just the one column? Link to comment https://forums.phpfreaks.com/topic/131258-using-the-while-loop-to-generate-a-column/ Share on other sites More sharing options...
rhodesa Posted November 3, 2008 Share Posted November 3, 2008 //MySQL connect stuff goes here $result = mysql_query("SELECT colName FROM tableName"); while($row = mysql_fetch_array($result)){ echo $row[0].'<br />'; } Link to comment https://forums.phpfreaks.com/topic/131258-using-the-while-loop-to-generate-a-column/#findComment-681476 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.