Update cek_tabel.php
This commit is contained in:
+7
-6
@@ -1,9 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
include('koneksi.php');
|
include 'koneksi.php';
|
||||||
|
|
||||||
// Reset dan pastikan role admin dan operator benar
|
$q = mysqli_query($conn, "SHOW TABLES");
|
||||||
mysqli_query($conn, "UPDATE users SET role='admin' WHERE username='admin'");
|
|
||||||
mysqli_query($conn, "UPDATE users SET role='operator' WHERE username='operator'");
|
|
||||||
|
|
||||||
echo "✅ Role sudah diatur: 'admin' dan 'operator'";
|
echo "<pre>";
|
||||||
?>
|
while($r = mysqli_fetch_array($q)){
|
||||||
|
print_r($r);
|
||||||
|
}
|
||||||
|
echo "</pre>";
|
||||||
Reference in New Issue
Block a user