Hi all,
I'm running a while loop on a MySql query:
while ($row = mysql_fetch_assoc($rresult)){
extract($row);
}
Question: I want to run the while loop until a counter hits a specific number. Can this be done? I tried:
while ($counter<=10 && $row = mysql_fetch_assoc($rresult)){
extract($row);
}
But it didn't work... Any ideas how I can do this?
I'm running a while loop on a MySql query:
while ($row = mysql_fetch_assoc($rresult)){
extract($row);
}
Question: I want to run the while loop until a counter hits a specific number. Can this be done? I tried:
while ($counter<=10 && $row = mysql_fetch_assoc($rresult)){
extract($row);
}
But it didn't work... Any ideas how I can do this?