Advertisement
ali602

config.php

May 15th, 2024
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | Source Code | 0 0
  1. <?php
  2.     $server = "localhost";
  3.     $user = "root";
  4.     $password = "";
  5.     $nama_database = "perpus";
  6.  
  7.     $db = mysqli_connect($server, $user, $password, $nama_database);
  8.  
  9.     if( !$db ){
  10.         die("Gagal terhubung dengan database: " . mysqli_connect_error());
  11.     }
  12.     echo "Koneksi berhasil terhubung";
  13.  
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement