hi all,
I'm looking for a way to catch MySQL db connection error before Godaddy throws me a error page that return no helpful error info at all.
What the error particular is that I'd like to check whether a database is currently available on the server of not and return a error message or move on with the connection.
Also, I wonder whether checking existing tables is using the same method or not.
Thank you for any help.
I'm looking for a way to catch MySQL db connection error before Godaddy throws me a error page that return no helpful error info at all.
What the error particular is that I'd like to check whether a database is currently available on the server of not and return a error message or move on with the connection.
Also, I wonder whether checking existing tables is using the same method or not.
Thank you for any help.