When I run the script below on my browser all that prints out is 0: If I erase MySQL_errno I get nothing. How would I get a more detailed error?
<?php
$link = mysql_connect("192...", "root", "");
mysql_select_db("visitors_tables");
echo mysql_errno($link) . ": " . mysql_error($link). "\n";
echo mysql_error();
$query = "SELECT * FROM visitors";
$result = mysql_query($query);
while ($line = mysql_fetch_array($result))
{
foreach ($line as $value)
{
print "$value\n";
}
}
mysql_close($link);
?>