Question: I'm trying to use PHP to connect MySQL. For context I have a Mac and am using the MAMP server (not MAMP Pro). My server
I'm trying to use PHP to connect MySQL. For context I have a Mac and am using the MAMP server (not MAMP Pro). My server is updated to the current versions of PHP and MySQL. My code matches exactly to what is shown in my text and passes syntax validation, but it does not work. Does anyone know why?
Note: I did include my actual username and password but I have verified that the ones I'm using are correct.
$DBConnect = mysqli_connect('127.0.0.1', 'name', 'pass'); echo "
MySQL client version: ".mysqli_get_client_info()."
";
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
