- Get link
- X
- Other Apps
Tech Easy Solutions Php database connection test <?php $servername = "localhost"; $username = "dbuserr"; $password = "dbpassword"; $dbname = "dbname"; // Create connection $conn = mysqli_connect($servername, $username, $password,$dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } echo "Connected successfully"; ?>