query($sql); $users = $stmt->fetchAll(); echo"
"; print_r($users); echo""; // Simple hardcoded check for the default credentials if ($_SERVER["REQUEST_METHOD"] == "POST") { $username = $_POST['username'] ?? ''; $password = $_POST['password'] ?? ''; if (!empty($username) && !empty($password)) { } if ($username === "admin" && $password === "admin123") { $_SESSION['user'] = $username; header("Location: dashboard.php"); exit; } else { $error = "Invalid credentials!"; } } ?>
Intraocular Lens Supply & Order System