"); } echo("" . htmlspecialchars($type) ."\n"); if($_GET['opta'] == $type) { echo(""); } $sep = ' | '; } unset ($sep); print_optionbar_end(); $query = mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$device['device_id']."' and entSensorType = '".$_GET['opta']."' ORDER BY `entPhysicalName`"); while($data = mysql_fetch_array($query)) { if($data['entSensorMeasuredEntity']) { $measured = mysql_fetch_array(mysql_query("SELECT * FROM entPhysical WHERE device_id = '".$device['device_id']."' AND entPhysicalIndex = '".$data['entSensorMeasuredEntity']."'")); } echo("