Here is a simple PHP code aimes to connect into a MySql server.
I'm trying to format error messages in a way my page will continue working despite errors that occure.
echo "Failed to connect to MySQL: " . mysqli_connect_error();
echo "Success connecting to MySQL! " ;
Here's the css code:
In return I get error messages that take me out of my page and is inconsistent with the css as shown in the screenshot attached
Have you tried running it in different browsers?
Have you run simple scripts that don't try to connect to a database?
echo 'Hello World';
This topic is now closed. New replies are no longer allowed.