Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Sample Script php
SUBMITTED BY:
kampfee
DATE:
Dec. 23, 2016, 9:20 p.m.
FORMAT:
Text only
SIZE:
744 Bytes
Raw
Download
Tweet
HITS:
528
Go to comments
Report
$cn = @mysql_connect("localhost", "root", "")
or
die
("Gagal konek ke MySQL."); mysql_select_db("db_user")
or
die
("Gagal memilih database."); $query = "select * from tb_user where login_username = '
$un
' and login_password = '
$pw
'"; $hasil = mysql_query($query)
or
die
("Gagal melakukan query.");
if
($hasil !=
false
) {
if
(mysql_num_rows($hasil) == 1) { $username = $_SESSION['username']; $password = $_SESSION['password']; }; }; }; ?>
<html>
<head>
<title>
Members Only
</title>
</head>
<body>
<p>
<a href=
"index.php"
>
Home
</a>
|
<a href=
"login.php"
>
Login
</a>
|
<a href=
"member.php"
>
Member
</a>
|
<a href=
"logout.php"
>
Logout
</a>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus