prepare("SELECT * FROM hospitals WHERE email = ?"); $stmt->execute([$email]); $hospital = $stmt->fetch(); if ($hospital && password_verify($password, $hospital['password_hash'])) { if ($hospital['status'] == 'Verified') { $_SESSION['hospital_id'] = $hospital['id']; $_SESSION['hospital_name'] = $hospital['name']; header("Location: hospital_dashboard.php"); exit; } else { $error = "Your hospital account is not yet verified."; } } else { $error = "Invalid email or password."; } } } ?> Hospital Login - Organ Donation

Hospital Login