Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "localhost";
- $user = "isi dengan user";
- $pass = "isi dengan password";
- $dbnm = "nama db";
- // Create a new connection to the MySQL database using PDO
- $conn = new mysqli($host, $user, $pass);
- // 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