So I'm currently following through some php tutorials and right now I'm learning how to connect the server to a database.
The code I've have type in so far in my text editor is:
<?php
$mysql_host = 'localhost';
$mysql_user = 'root';
$mysql_pass = '';
mysql_connect($mysql_host, $mysql_user, $mysql_pass);
?>
My screen is completely blank so I thought great the code has worked fine. However I thought just to check I'd mess up the code see what response I get. So I changed this:
$mysql_user = 'root'; to $mysql_user = 'alex';
I thought this would throw up an error message on my screen but it didn't, which led me to believe that my code was wrong. Or I have been setting things up wrong, because the user is 'root' not 'alex'.
Just for some information. The text editor I'm using is brackets and the code I have shown is from a file called index.php that is in a folder called databases which sits in the htdocs folder. Oh and I'm using Xampp