Advertisement
damarwulan12

Untitled

Apr 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. config.php
  2.  
  3. <?php
  4.  
  5. $server = "localhost";
  6. $user = "root";
  7. $password = "";
  8. $nama_database = "pendaftaran_siswa";
  9.  
  10. $db = mysqli_connect($server, $user, $password, $nama_database);
  11.  
  12. if( !$db ){
  13. die("Gagal terhubung dengan database: " . mysqli_connect_error());
  14. }
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement