Commit a385de1e by Mei Romauli Sagala

perubahan nama database

parent 71ba685f
...@@ -4,7 +4,7 @@ global $con; ...@@ -4,7 +4,7 @@ global $con;
if (!$con) { if (!$con) {
die("database connect problem"); die("database connect problem");
} }
$db_use = mysqli_select_db($con, "mydb") or die("selet db problem !!"); $db_use = mysqli_select_db($con, "p1d3ti04_pondokedo") or die("selet db problem !!");
function execQ($strQ){ function execQ($strQ){
global $con; global $con;
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
$host="127.0.0.1"; $host="127.0.0.1";
$user="root"; $user="root";
$pass=""; $pass="";
$name="mydb"; $name="p1d3ti04_pondokedo";
$koneksi=mysql_connect($host,$user,$pass)or die("Koneksi ke database gagal!"); $koneksi=mysql_connect($host,$user,$pass)or die("Koneksi ke database gagal!");
mysql_select_db($name,$koneksi)or die("Tidak ada database yang dipilih!"); mysql_select_db($name,$koneksi)or die("Tidak ada database yang dipilih!");
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