At times, you want to nest loops based on sql queries, somewhat like
while ($xrow = mysql_fetch_array($xresult)) {
while ($yrow = mysql_fetch_array($yresult) {
// do things with $xrow and $yrow
}
}
and that's not a problem.
but with mysqli, you need to loop through a result before starting a new one.
how can one work around that in the best way, to do the similar approach?
do I need to create two sql connections, or should I loop through one query first and rewind it and then do this?
any solutions?


Sign In
Create Account

Back to top









