skip to Main Content

Cannot Connect to MySQL with PHP – CPanel

I have the following code: <?php //Step1 $db = mysqli_connect('localhost','root','[mypassword]','users') or die('Error connecting to MySQL server.'); ?> <html> <head> </head> <body> <h1>PHP connect to MySQL</h1> </body> </html> I am just trying to connect to my MySQL database. It is administered…

VIEW QUESTION
Back To Top
Search