Some time ago I had written a simple PHP/MySql address book application. It worked quite well. The last time I reformatted and reinstalled a new distro, I forgot to back up the db before hand so it is gone. I am trying to reverse engineer the db from the code and am pretty close. I am getting an error when bring up the page that I am unsure about.
Warning: Address is not in a.b.c.d form in /var/www/html/phpscripts/ip.php on line 46
Here are lines 45 & 46:
PHP Code:
if(!(@ mysql_select_db($dbName, $connection )))
showerror();
showerror() is a function contained in an include file. It is the only function in the include file.
Here is error.inc:
PHP Code:
<?
function ShowError()
{
die( "Error ".mysql_errno()." : ".mysql_error());
}
?>
The function should just display the MySQl error code and error info.
Any thoughs?