koneksi

parent cb490b4a
<?php <?php
global $koneksi; global $koneksi;
$koneksi = mysqli_connect("localhost", "root", ""); //$koneksi = mysqli_connect("localhost", "root", "");
//$koneksi = mysqli_connect("localhost", "p1d3ti07", "p1d3ti07"); $koneksi = mysqli_connect("localhost", "p1d3ti07", "p1d3ti07");
if (!$koneksi) { if (!$koneksi) {
die("Database connection problem"); die("Database connection problem");
} }
$db_use = mysqli_select_db($koneksi, "toko_buku_cemerlang") or die("Select database problem !!"); //$db_use = mysqli_select_db($koneksi, "toko_buku_cemerlang") or die("Select database problem !!");
//$db_use = mysqli_select_db($koneksi, "p1d3ti07_d3ti07") or die("Select database problem !!"); $db_use = mysqli_select_db($koneksi, "p1d3ti07_d3ti07") or die("Select database problem !!");
?> ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment