fhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhd dfhdfhdfhdfhdfhdfhdfhdfdfhdfhdfhdhfdfhdfhdfhdfh
| DIR:/home/u1105814/public_html/rarental.co.id/ |
| Current File : /home/u1105814/public_html/rarental.co.id/koneksi.php |
<?php
$dbhost = 'localhost';
$dbuser = 'root'; // ini berlaku di xampp
$dbpass = ''; // ini berlaku di xampp
$dbname = 'baru';
// melakukan koneksi ke database
$connect = new mysqli($dbhost,$dbuser,$dbpass,$dbname);
// cek koneksi yang kita lakukan berhasil atau tidak
if ($connect->connect_error) {
// jika terjadi error, matikan proses dengan die() atau exit();
die('Maaf koneksi gagal: '. $connect->connect_error);
}
?> |