<?php
require_once '../config.php';

$email = 'doctor@shasthokanon.com';
$result = $conn->query("SELECT * FROM doctors WHERE email='$email'");

if ($result->num_rows == 0) {
    echo "❌ No doctor found with email: $email";
} else {
    $doctor = $result->fetch_assoc();
    echo "✅ Doctor found: " . $doctor['name'] . "<br>";
    echo "Password hash: " . $doctor['password'] . "<br>";
    
    if (password_verify('doctor123', $doctor['password'])) {
        echo "✅ Password matches!";
    } else {
        echo "❌ Password does NOT match!";
    }
}
?>