You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$dbh = new PDO("mysql:host=$hostname;dbname=simssampledb", $username, $password);
}
catch(PDOException $e)
{
echo $e->getMessage();
}
//If we will not use catch statement, then in case of error zend engine terminate the script and display a back trace. This back trace will likely reveal the full database connection details, including the username and password.