Bu cevap, konu sahibi tarafından kabul edilebilir bir cevap olarak işaretlendi.
<?php
$email = isset($_GET["email"]) ? $_GET["email"] : "";
if($email) {
$servername = "localhost";
$username = "kullanici_adi";
$password = "sifre";
$dbname = "veritabani_adi";
$conn = mysqli_connect($servername, $username, $password, $dbname);
if (!$conn) {
die("Bağlantı hatası: " . mysqli_connect_error());
}
$sql = "SELECT * FROM tablo WHERE email = '$email'";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
echo $result;
}
} else {
echo "Kayıt bulunamadı";
}
}