Im having a hard time connceting to my database. I’m using phpMyAdmin. Can anyone help me please?
Current Version: 2.3
Build: 4
Current Commit: d65b6b5bcd4e89ce1a0eeb74131f98093e85bb3a
Latest Version: 2.3
Latest Build: 4
Latest Commit: d65b6b5bcd4e89ce1a0eeb74131f98093e85bb3a
This is my config.php script
<?php $servername = "localhost"; $username = "poms_admin"; $password = ""; $dbname = "poms_dbase"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; // Close connection $conn->close(); ?>