Commit acdd65f8 by Andry F. Hutapea

perubahan

parent 0c6a4554
<?php
session_start();
$data_username=$_POST['username'];
$data_password=$_POST['password'];
$host = "localhost";
$user = "root";
$password = "";
$db_name = "percobaan";
$connection = mysqli_connect($nama, $username, $password, $db_name);
$query = "select * form tbc where username ='$user' and password = '$password'";
$exce = mysqli_query($connection, $db_name);
$user_konfirmasi="";
$password_konfirmasi ="";
if($data_username==$user_konfirmasi && $data_password==$password_konfirmasi){
echo"Berhasil Login";
}else{
echo"gagal login";
}
$_SESSION["username"] = $data_username;
$_SESSION["password"]= $data_password;
//
$new_location = "admin.php";
header('Location: '.$new_location);
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment