My php script seems to be dieing at the database connection using this code but it's not printing my error. It will print all php code before the connection code, but it prints nothing after it making me think this is my problem:
$DBConnect = @mysqli_connect("localhost", "user", "pass") Or die("<p>Unable to connect to the database server</p>" . "<p>Error code " . mysqli_connect_errno() . ": " . mysqli_connect_error()) . "</p>";
This works just fine offline in my testing environment but when I upload it online and change my information over to the real database host, username, and password nothing happens beyond this string of code.
It doesnt print the success message and it doesn't print an error message saying that it could not connect.
Is this a problem with my code? I've checked my host name, username, and password 10+ times.
Could this code maybe not work with the database being Mysql 4.0?
Thanks for any help.