Commit 9b7e8873 by Mei Romauli Sagala

in progress

parent 01c95b55
<?php <?php
global $con; global $con;
$con = mysqli_connect("localhost", "p1d3ti04", "MeiHong05"); $con = mysqli_connect("localhost", "p1d3ti04_pondokedo", "MeiHong05");
if (!$con) { if (!$con) {
die("database connect problem"); die("database connect problem");
} }
$db_use = mysqli_select_db($con, "p1d3ti04_pondok_edo") 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;
......
...@@ -3,7 +3,13 @@ ...@@ -3,7 +3,13 @@
require_once(dirname(__FILE__).'/common/header.php'); require_once(dirname(__FILE__).'/common/header.php');
require_once(dirname(__FILE__).'/cek_login.php'); require_once(dirname(__FILE__).'/cek_login.php');
require_once(dirname(__FILE__).'/fungsi/session.php'); require_once(dirname(__FILE__).'/fungsi/session.php');
require_once(dirname(__FILE__).'koneksi.php');
global $con;
$con = mysqli_connect("localhost", "p1d3ti04_pondokedo", "p1d3ti04", "MeiHong05");
if (!$con) {
die("database connect problem");
}
$db_use = mysqli_select_db($con, "p1d3ti04_pondokedo") or die("selet db problem !!");
if(isset($_GET['do_login'])){ if(isset($_GET['do_login'])){
$login =getUser($_POST['username'],$_POST['password']); $login =getUser($_POST['username'],$_POST['password']);
......
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