Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // connect ke database
- $DB_HOST = "localhost";
- $DB_DATABASE = "daftar_piutang";
- $DB_USERNAME = "root";
- $DB_PASSWORD = "";
- // create connection
- $conn = new mysqli($DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
- // check connection
- if($conn->connect_error){
- die('Connection failed:' .$conn->connect_error);
- }
- else{
- // echo "connection success";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement