Postingan

Menampilkan postingan dari Desember, 2018

EAS PWEB

Gambar
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...

TUGAS 9 BOOSTRAP

Nama  : Kevin Ashil Faadilah NRP    : 05111740000178 Kelas  : Pemrograman Web C  Source code : config.php <?php $server = "localhost"; $user = "root"; $password = ""; $nama_database = "pendaftaran_siswa"; $db = mysqli_connect($server, $user, $password, $nama_database); if( !$db ){    die("Gagal terhubung dengan database: " . mysqli_connect_error()); } ?> form-pendaftaran.php <!DOCTYPE html> <html> <head>     <title>Formulir Pendaftaran Siswa Baru | SMA BudiKarya</title> <link rel="stylesheet" type="text/css" href="css/bootstrap.css">    <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/bootstrap.js"></script> </head> <body>     <center>     <header>         <h3>Formulir Pendaftaran Siswa Baru...