Kez323 Posted August 11, 2013 Share Posted August 11, 2013 hey, this should echo all of the results from the query, right? in the database there is more than 1 fields to echo, but it only echos 1, whats wrong with it? $getid = mysql_query("SELECT * FROM $tbl_name WHERE userid='$id'", $connect); $idresults= mysql_fetch_array($getid); while($idresults= mysql_fetch_array($getid)){ echo $idresults['frienduserid']; } Link to comment https://forums.phpfreaks.com/topic/281051-php-mysql-only-returning-1-result/ Share on other sites More sharing options...
KevinM1 Posted August 11, 2013 Share Posted August 11, 2013 Get rid of line 14. Link to comment https://forums.phpfreaks.com/topic/281051-php-mysql-only-returning-1-result/#findComment-1444417 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.