EAS PWEB
Pengerjaan EAS - Membuat PDB dengan Bootstrap Video Tutorial Penggunaan : Rancangan Database : Rancangan Interfaces : Dokumentasi Implementasi : config.php <?php $db_host = "localhost"; $db_user = "vashcopw_admin"; $db_pass = "admin_123"; $db_name = "siswa"; try { //create PDO connection $db = new PDO("mysql:host=$db_host;dbname=$db_name", $db_user, $db_pass); } catch(PDOException $e) { //show error die("Terjadi masalah: " . $e->getMessage()); } auth.php <?php session_start(); if(!isset($_SESSION["user"])) header("Location: login.php"); index.php <?php require_once("config.php"); if(isset($_POST['login'])){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_STRING); $password = filter_input(INPUT_POST, 'password', FILTER_SANITI...