include("samon.php"); $qh = mysql_query("SELECT display_name, contact_person, read_comm, write_comm FROM hosts WHERE hostname='$router'"); list($dname, $contact, $rcom, $wcom) = mysql_fetch_row($qh); mysql_free_result($qh); echo "
| Router: | $router"; echo " |
| Display: | $dname"; echo " |
| Contact: | $contact"; echo " |
| Read-Community: | $rcom"; echo " |
| Write-Community: | $rcom"; echo " |