Advertisement
Guest User

Untitled

a guest
Apr 4th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2. $host = "localhost";
  3. $username = "root";
  4. $password = "";
  5. $database = "belajar";
  6. $connect = mysqli_connect($host,$username,$password,$database);
  7.  
  8. if (!$connect) {
  9.     die("Connection failed: " . mysqli_connect_error());
  10. }
  11. echo "Connected successfully";
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement