Advertisement
Rahardyan

db koneksi

Nov 22nd, 2024
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. <?php
  2. $host='localhost';
  3. $user='root';
  4. $password='';
  5. $dbname='inventory';
  6.  
  7. $conn = mysqli_connect($host,$user,$password,$dbname);
  8.  
  9. if (!$conn) {
  10.     die('koneksi database gagal :'.mysqli_connect_error());
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement