Limiting while loop

covickjuin

New Member
Is there a way to limiting while loops when fetching data from mysql ?\[code\]$query = "SELECT * FROM `table` WHERE user_id = '$id' ORDER BY `ID` DESC";$result = mysql_query($query);while ($info = mysql_fetch_assoc($result)) { //stuff}\[/code\]Here i dont want to use mysql's LIMIT function, can i limit while loop other than that one ?Thanks
 
Back
Top