real_escape_string($mid); if (is_numeric($mooid)) { $sql = "select * from moo where id=$mooid"; if (!$res = $db->query($sql)) { die('There was a problem with a query'); } $numrows = $res->num_rows; if ($numrows == 1) { $row = $res->fetch_array(MYSQLI_BOTH); ?>

Note: This data is still in it's raw form and probably isn't much use but it will be refined into something useful.

\n"; echo "\n"; echo "\n"; print "\n"; if (!$public) { $address = "private**"; $ip = "private**"; $port = "private**"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; ?>
name:$name
status:$statuses[$status]
contact:"; if (!$public_email) { echo "private*"; } else { echo "$contact"; } print "
website:"; if ($website != "") { print "$website"; } else { print "none"; } print "
address:$address
port:$port
moo type:$types[$mtype]
lastping:"; if ($lastping != 0) { echo date('m/d/Y',$lastping); } else { echo "never"; } echo "
lastresult:"; if ($lastresult == 0) { echo "down"; } else { echo "up"; } echo "
language:$langs[$lang]
listed:" . date('m/d/Y',$listed) . "
description:"; if ($desc == "") { print "none yet"; } else { print $desc; } print "
lastupdate:" . date('m/d/Y',$lastupdate) . "

* email addresses are marked as private unless we have been given express permission to publish the contact information.

** MOO access data is marked as private if the MOO is a private MOO.

there was an error selecting from the database: $numrows results returned\n"; } } else { echo "error
that id is invalid: $mooid\n"; } } else { echo "error
no moo id given\n"; } ?>