Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $db_servername = "localhost";
- $db_username = "root";
- $db_password = "";
- $db_name = "test";
- // Create connection
- $con = mysqli_connect($db_servername, $db_username, $db_password, $db_name);
- // Check connection
- if (!$con) {
- die("Connection failed: " . mysqli_connect_error());
- }
- echo "Couldn't connect to database";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement