Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "mysql.hostinger.com";
- $username = "u266072517_user";
- $database = "u266072517_name";
- $password = "buystuffpwd";
- // Create a new connection to the MySQL database using PDO
- $conn = new mysqli($servername, $username, $password);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- echo "Connected successfully";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement