Guest User

koneksi.php

a guest
Oct 16th, 2016
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.25 KB | None | 0 0
  1. <?php
  2. $host = "localhost";
  3. $user = "root";
  4. $pass = "generate";
  5. $name = "app";
  6.  
  7. $koneksi = mysql_connect($host, $user, $pass) or die("Koneksi ke database gagal!");
  8. mysql_select_db($name, $koneksi) or die("Tidak ada database yang dipilih!");
  9. ?>
Add Comment
Please, Sign In to add comment