git-svn-id: http://www.observium.org/svn/observer/trunk@2322 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-15 14:42:30 +00:00
parent b167c37138
commit b0e02918ef
5 changed files with 31 additions and 37 deletions

View File

@@ -12,8 +12,7 @@ if ($_SESSION['userlevel'] < '5')
}
}
$query = mysql_query("SELECT * FROM `services` AS S, `devices` AS D WHERE S.device_id = D.device_id ORDER BY hostname");
while ($device = mysql_fetch_assoc($query))
foreach (dbFetchRows("SELECT * FROM `services` AS S, `devices` AS D WHERE S.device_id = D.device_id ORDER BY hostname") as $device)
{
$servicesform .= "<option value='" . $device['service_id'] . "'>" . $device['service_id'] . "." . $device['hostname'] . " - " . $device['service_type'] . "</option>";
}
@@ -41,4 +40,4 @@ if ($_SESSION['userlevel'] < '5')
}
?>
?>