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