I am trying to connect to mysql via php using this line
@ $db = new mysqli_connect('localhost', 'bookorama', 'bookorama123', 'books');
if (mysqli_connect_errno()) {
echo 'Error: Could not connect to database. Please try again later.';
exit;
}
I am not getting any response, no error message, nothing. I even added an echo'hi';
after the first line of code and it doesn't show up. When I added echo'hi'; before the first line hi prints out.
Any tips?