$query = $db->query("SELECT * FROM users WHERE email = '{$mail}' LIMIT 1")->fetch(PDO::FETCH_ASSOC);
if ( $query ){
$id = $query["id"];
}
Konu: Sorun Çözüldü
$query = $db->query("SELECT * FROM users WHERE email = '{$mail}' LIMIT 1")->fetch(PDO::FETCH_ASSOC);
if ( $query ){
$id = $query["id"];
}