If I use the '@' to suppress errors as suggested, e.g.
@$link=mysql_connect("domain.com.au", "database", "password")
or die("--");
is there then a way to retrieve the errors so I can write them to a flat-file?
I tried:
$errorNum=mysql_errno();
$errorMessage=mysql_error();
echo $errorNum."<BR>";
echo $errorMessage."<BR>";
straight after the mysql_connect, but nothing was returned from these functions. So, is there a way I can retrieve these error for error logging while not having them display on the web page itself??
Thanks in advance.
DAV