In an earlier question, I got the advice to use a try-catch statement on an odbc_connect call. Well, said and done, that's what I've tried to do.
The following code, which tries to connect to a database using bogus login information, does not work as excpected.
<?php
try
{
odbc_connect('BogusDatabase','BogusUser','BogusPassword');
}
catch (Exception $e)
{
echo "Something went wrong!";
}
?>
I would expect the output to be a string saying "Something went wrong!". Instead I get this:
I'm using Wampserver to run my PHP code. I don't know if this is a part of the problem.