Jump to content

[SOLVED] querying limited results


Canadiengland

Recommended Posts

$selectuser="SELECT * from km_users order by pkpoints ASC";
	$selectuser2=mysql_query($selectuser) or die("could not select item");
	while($selectuser3=mysql_fetch_array($selectuser2))
     			 {
     			  print "<br>$selectuser3[playername]<br><br>";
     			 }

 

i want this to return only the top 5 of the list. how can i limit the query?

Link to comment
https://forums.phpfreaks.com/topic/65917-solved-querying-limited-results/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.