How can I take the output of a while loop and pass it to a for loop?
I get some id from my sql db using while loop. Now, how to pass each id to select query?
For example:
while($row = mysql_fetch_array($sql)) {
$y= $row['c'];
}
How can I pass each $y to a select query?
I think this is what you’re asking for: