$sql = "SELECT * from entPhysical AS E, devices AS D WHERE E.device_id = D.device_id"; if($_POST['search']) { $sstring = $_POST['search']; $sql = "SELECT * from entPhysical AS E, devices AS D WHERE E.entPhysicalModelName LIKE '$sstring' AND E.device_id = D.device_id"; } echo("
"); $query = mysql_query($sql); echo("Hostname | Description | Name | Part No | Serial No |
---|---|---|---|---|
" . generatedevicelink($entry, shortHost($entry['hostname'])) . " | " . $entry['entPhysicalDescr'] . " | " . $entry['entPhysicalName'] . " | " . $entry['entPhysicalModelName'] . " | " . $entry['entPhysicalSerialNum'] . " |