= '5') { $sql = "SELECT * from entPhysical AS E, devices AS D WHERE E.device_id = D.device_id $where ORDER BY D.hostname"; } else { $sql = "SELECT * from entPhysical AS E, devices AS D, devices_perms AS P WHERE E.device_id = D.device_id AND D.device_id = P.device_id $where ORDER BY D.hostname"; } $query = mysql_query($sql); echo(""); echo(""); while ($entry = mysql_fetch_assoc($query)) { if ($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; } echo(""); } echo("
HostnameDescriptionNamePart NoSerial No
" . generate_device_link($entry, shortHost($entry['hostname'])) . "" . $entry['entPhysicalDescr'] . "" . $entry['entPhysicalName'] . "" . $entry['entPhysicalModelName'] . "" . $entry['entPhysicalSerialNum'] . "
"); ?>