Update login.php
This commit is contained in:
@@ -5,10 +5,16 @@ session_start();
|
||||
if (isset($_SESSION['user_id'])) { header("Location: dashboard.php"); exit; }
|
||||
|
||||
include 'koneksi.php';
|
||||
echo "DATABASE AKTIF: ";
|
||||
$result = mysqli_query($conn, "SELECT DATABASE() as db");
|
||||
$row = mysqli_fetch_assoc($result);
|
||||
var_dump($row);
|
||||
echo "<pre>";
|
||||
echo "HOST : ".$_SERVER['HTTP_HOST']."\n";
|
||||
|
||||
$result = mysqli_query($conn,"SELECT id,username,role FROM users");
|
||||
|
||||
while($row=mysqli_fetch_assoc($result))
|
||||
{
|
||||
print_r($row);
|
||||
}
|
||||
echo "</pre>";
|
||||
exit;
|
||||
|
||||
$error = '';
|
||||
|
||||
Reference in New Issue
Block a user