Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $username = "(Username agan!)";
- $password = "(Password agan!)";
- $database = "(Database agan!)";
- $conn = mysqli_connect($servername, $username, $password, $database);
- // Check Koneksi ke database
- if (!$conn) {
- die("Koneksi gagal disini: " . mysqli_connect_error());
- }
- echo "Koneksi Berhasil Gan!";
- mysqli_close($conn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement