This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// logout.php | |
session_start(); | |
unset($_SESSION['NAMA_USER']); | |
unset($_SESSION['PASSWORD_USER']); | |
session_destroy(); | |
?> | |
<!DOCTYPE html> | |
<html lang="en-US"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="utf-8"> | |
<title>INDEX</title> | |
<style type="text/css"> | |
div | |
{ | |
text-align: center; | |
font-size: 180%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- proses_login.php --> | |
<?php | |
@session_start(); | |
//Membuat Koneksi Database dan Menampung Query | |
include"oraconn.php"; | |
$username = $_POST['NAMA_USER']; | |
$password = $_POST['PASSWORD_USER']; | |
$query = "SELECT * FROM TB_USER WHERE NAMA_USER = :nu_pl AND PASSWORD_USER = :pw_pl"; | |
$hasil = oci_parse($c, $query); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
@session_start(); | |
unset($_SESSION['NAMA_USER']); | |
if(isset($_SESSION['NAMA_USER'])) | |
{ | |
header("location:index.php"); | |
} | |
?> | |
<!DOCTYPE html> | |
<html lang="en-US"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$username = "simple"; | |
$password = "transaction"; | |
$dbname = "localhost/XE"; | |
$c = oci_connect($username, $password, $dbname); | |
if(!$c){ | |
echo "Gagal tersambung dengan Database"; | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE TB_USER(ID_USER NOT NULL VARCHAR2(5), NAMA_USER VARCHAR2(25), | |
COMPANY_USER VARCHAR2(15), CHANNEL_USER VARCHAR2(15), LEVEL_USER VARCHAR2(15), | |
PASSWORD_USER VARCHAR2(15), CONSTRAINT pk_user PRIMARY KEY(ID_USER)); |