SHARE
TWEET

DB koneksi php

a guest Dec 6th, 2019 152 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     // connect ke database
  3.     $DB_HOST = "192.168.64.2";
  4.     $DB_DATABASE = "sekolahku";
  5.     $DB_USERNAME = "puguh";
  6.     $DB_PASSWORD = "123";
  7.     $DB_PORT = "3306";
  8.  
  9.     // create connection
  10.     $conn = new mysqli($DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE, $DB_PORT);
  11.  
  12.     // check connection
  13.     if($conn->connect_error) {
  14.         die('Connection failed:' .$conn->connect_error);
  15.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top