I am running my own database for a webpage that I have. The php script connects via an IP addess. It works fine, but I am scared that if something happens to the box that is running the database crashes, I will have a horrible looking webpage because of MySQL errors.
I was wondering if there is a way to build an if statement that goes something like this:
$link = mysql_connect(...)
if ($link == TRUE)
{
..
...
...
}
else
{
print "No database access right now";
}
Any suggestions would be greatly appreciated!
Thanks,
Adam Cavaliere