I have nill experience with foreach. Is this right?
$sql = mysql_query("SELECT id from servers WHERE active = '1'");
$list = array();
while($ids = mysql_fetch_array($sql)){
$list[] = $ids['id'];
foreach($list as $id){
$get = mysql_query("SELECT * FROM SERVERS WHERE id = ".$id."");
$serv = mysql_fetch_array($get);
// rest of process here using $serv['cell_ref'] as a reference.
}
This should cycle through all rows. Is that right? (It's not working... so I'm hoping thats written wrong :P )