mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2336 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -44,11 +44,9 @@ if ($ports['total'])
|
||||
|
||||
echo(' <div style="margin: 8px; font-size: 11px; font-weight: bold;">');
|
||||
|
||||
$sql = "SELECT * FROM ports WHERE `device_id` = '" . $device['device_id'] . "' AND deleted != '1'";
|
||||
$query = mysql_query($sql);
|
||||
$ifsep = "";
|
||||
|
||||
while ($data = mysql_fetch_assoc($query))
|
||||
foreach (dbFetchRows("SELECT * FROM `ports` WHERE device_id = ? AND `deleted` != '1'", array($device['device_id'])) as $data)
|
||||
{
|
||||
$data = ifNameDescr($data);
|
||||
$data = array_merge($data, $device);
|
||||
@@ -61,4 +59,4 @@ if ($ports['total'])
|
||||
echo("</div>");
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user