";
mysql_select_db($db)
or die ("Couldn't open $db: ". mysql_error());
print "successfully selected database \"$db\"
";
$result = mysql_query("SELECT * FROM domains");
$num_rows = mysql_num_rows($result); //returns no of rows
print "There are currently $num_rows rows in the table";
/*
while ($a_row = mysql_fetch_object($result))
{
print "
";
print ($a_row->mail. " " . $a_row->domain);
}
*/
print "
";
while ($a_row = mysql_fetch_array($result)) //change function
{
print "";
print "".$a_row['mail']." | ".$a_row['domain']." | ";
print "
";
}
print "
";
mysql_close($link);
?>