I am currently using this code to hide mysqli_connect() errors.
error_reporting(E_ALL);
ini_set('display_errors',0);
But with reporting ON, when I introduce an incorrect setting into a mysqli_connect() param the usual gibberish appears. Is it possible to display a message of my own such as "Check DB connection settings" rather than the garble you usually get IF mysqli_connect() fails?
I presume this is done with try/catch. Can anyone shed some light on this with of how I might do the above?
Could be along the lines of pseudo If mysqli_connect bad settings, echo "bad settings please check".
Thanks.