Commit 9b7e8873 by Mei Romauli Sagala

in progress

parent 01c95b55
<?php
global $con;
$con = mysqli_connect("localhost", "p1d3ti04", "MeiHong05");
$con = mysqli_connect("localhost", "p1d3ti04_pondokedo", "MeiHong05");
if (!$con) {
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){
global $con;
......
......@@ -3,11 +3,17 @@
require_once(dirname(__FILE__).'/common/header.php');
require_once(dirname(__FILE__).'/cek_login.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'])){
$login =getUser($_POST['username'],$_POST['password']);
if($login == false){
if($login == false){
$_SESSION['login_error'] = TRUE;
}else{
$_SESSION['user'] = TRUE;
......
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