DB Error Catching in PHP…
In line with the ‘@’ functionality which prevents PHP from splattering error messages to the user. I wrote this code which to replace the current method of accesing a DB…
The original method would be
$dB_connect=mysql_connect($dbhost,
$dbusername,$dbpasswd)
Then preceeding it with a ‘@’, the new code would look like this.
$dB_connect=@mysql_connect($dbhost,
$dbusername,$dbpasswd)

Medz, the pug being studded to our pooch… only one day in our house… she feels so at home already…