Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RestoranPondokEdo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mei Romauli Sagala
RestoranPondokEdo
Commits
9b7e8873
Commit
9b7e8873
authored
May 23, 2017
by
Mei Romauli Sagala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in progress
parent
01c95b55
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
cek_login.php
cek_login.php
+2
-2
form_login.php
form_login.php
+7
-1
No files found.
cek_login.php
View file @
9b7e8873
<?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
;
...
...
form_login.php
View file @
9b7e8873
...
@@ -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'
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment