Add buat_operator.php
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
include 'koneksi.php';
|
||||
|
||||
$username = 'operator';
|
||||
$password = '$2y$10$xFvFSy4mVkLznYgORN/vb.UDlrFrUlQ4wgXm08vRxN54of9LDGlEW';
|
||||
$nama = 'Operator';
|
||||
$role = 'admin_ibadah';
|
||||
$id_rumah_ibadah = 6;
|
||||
|
||||
$sql = "INSERT INTO users
|
||||
(username, password, nama, role, id_rumah_ibadah)
|
||||
VALUES
|
||||
('$username', '$password', '$nama', '$role', $id_rumah_ibadah)";
|
||||
|
||||
if(mysqli_query($conn, $sql)){
|
||||
echo "Operator berhasil dibuat";
|
||||
}else{
|
||||
echo mysqli_error($conn);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user