Error:
"; die ("Can't connect to the db"); } if (isset($_GET[host])) { $hostname=$_GET[host]; $query = "SELECT hostid.id, hostinfo.date, hostinfo.status FROM hostid, hostinfo WHERE hostid.hostname = '$hostname' order by date desc limit 1"; $result=mysql_db_query("$db", "$query"); while ($r=mysql_fetch_array($result)) { $id = $r["id"]; $date = $r["date"]; $status = $r["status"]; echo "Latest backup: $date $status"; } } ?>