Advertisement
nauvals78

CRUD OOP - config

Aug 17th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. <?php
  2. $servername = "localhost";
  3. $username = "root";
  4. $password = "";
  5. $db = "crudoop";
  6.  
  7. $mysqli = new mysqli($servername,$username,$password,$db);
  8.  
  9. if($mysqli->connect_errno){
  10.     die("Gagal Koneksi : ".$mysqli->connect_error);
  11. }
  12.  
  13.  
  14.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement