?> '') { //Ambil data user dari database $koneksi = mysql_connect("localhost","jabatan1_su","arif22835"); $pilih = mysql_select_db("jabatan1_sg"); $identitas= mysql_query("SELECT password FROM petugas WHERE username = '$usernameinput'"); while($baris = mysql_fetch_row($identitas)) { $username = $usernameinput; $password = $baris[0]; } //echo $username; //echo $password; if ($usernameinput == $username and $passwordinput == $password and $username <> '' and $password <> '') { // if they are in the database register the user id $_SESSION['safeguardsc'] = $username.'safeguardsc'; // VARIABEL PENANDA APAKAH USER LOGIN include "refresh.php"; //echo 'Anda berhasil login'; //echo "This database contain only dummy data"; } else { //echo 'Gagal Login'; } //} //kurung tutup jika $kd_petugas kosong } if (isset($_SESSION['safeguardsc'])) { include "koneksi.php"; //include "kembali.php"; } else { include "view.php"; } ?>
 
 
 
On Line Database
Sistem Inspeksi dan Evaluasi Hasil Inspeksi Safeguards

} else { echo '

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
Note: All data in this database is a dummy data (not real)
To try please insert:
username: safeguards
password: jafung
username:
Password:
'; echo '
'; } /*if ($usernameinput = "arifisnaeni") { // if they are in the database register the user id $_SESSION['safeguardsc'] = $usernameinput; // VARIABEL PENANDA APAKAH USER LOGIN //echo 'Anda berhasil login'; } else { //echo 'Gagal Login'; } }*/ ?>