Advertisement
Guest User

koneksi mysql

a guest
Mar 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. <?php
  2. $host="localhost";
  3. $user="root";
  4. $password="";
  5. $db="nama_database";
  6.  
  7. $konek=mysql_connect($host,$user,$password) or die ("Tidak terkoneksi");
  8. $pilih_db=mysql_select_db($db) or die ("Database belum tersedia");
  9.  
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement