Good all the time of day.
$result = mysql_query("SELECT * FROM table LIMIT 0, 20",$db); $myrow = mysql_fetch_array($result); do { printf ("%s", $myrow["field"]); } while ($myrow = mysql_fetch_array($result)); There is a hosting, on the hosting there is a limit on the number of requests. By the method of "spear" learn not hunting. How many queries to the table does this code actually make? 20?
ps through while possible
$result = mysql_query("SELECT * FROM table LIMIT 0, 20",$db); $myrow = mysql_fetch_array($result); while ($myrow = mysql_fetch_array($result)) { printf ("%s", $myrow["field"]); } But, I think, from this the number of requests will not decrease.