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']; } Quote Link to comment https://forums.phpfreaks.com/topic/281051-php-mysql-only-returning-1-result/ Share on other sites More sharing options...
Solution KevinM1 Posted August 11, 2013 Solution Share Posted August 11, 2013 Get rid of line 14. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.