Saturday, 17 August 2013

Try / catch for connection misconfigurations?

Try / catch for connection misconfigurations?

Dear mr stack overflow...
I am learning about try / catch. I want to create a try/catch function for
misconfigured mysqli_connect(x.x.x.x) settings. So say if the host is
incorrect, I'd want to be able to display this before the script is run.
Can anyone provide some code examples on how exactly I might set this up?
Herbert.

No comments:

Post a Comment