Hey all.
All I need is to collect every id
from servers
where active ='1'
and then cycle the results in a loop right until the end for each individual id.
(I've written this on daniweb, might be typo's or errors.
I'm not interested in code errors it's the process itself)
so...
$sql = mysql_query("SELECT `id` FROM `servers` WHERE `id` = '1'");
$ids = mysql_fetch_array($sql);
foreach ($ids){
// complete the process in these brackets
}
What I dont know is how you write the for each id do this part:
foreach ($ids){
What do I need to use here to begin the process for each ID?
Thanks in advance!