Untitled

 avatar
unknown
php
2 years ago
446 B
9
Indexable
<?php

include("baglanti.php");
$eposta = $_POST["email"];

// Veritabanı bağlantısı

$query = "SELECT COUNT(*) as count FROM uyehesap WHERE email = '$eposta'";
$result = mysqli_query($baglan, $query);

if ($result && mysqli_num_rows($result) > 0) {
    $exists = true;
} else {
    $exists = false;
}

$response = array("exists" => $exists);
echo json_encode($response);

// Bağlantıyı kapat
mysqli_close($baglan);
?>
Editor is loading...