Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $server = "localhost";
- $user = "root";
- $password = "";
- $nama_database = "perpus";
- $db = mysqli_connect($server, $user, $password, $nama_database);
- if( !$db ){
- die("Gagal terhubung dengan database: " . mysqli_connect_error());
- }
- echo "Koneksi berhasil terhubung";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement