connect_error) { die("Connection failed: " . $conn->connect_error); } // Fetch data from the database $tc = $_GET['tc']; $sql = "SELECT * FROM users WHERE TC = '$tc'"; $result = $conn->query($sql); $mainInfo = ""; $familyInfo = ""; if ($result->num_rows > 0) { $row = $result->fetch_assoc(); $mainInfo = "

TC: {$row['TC']}

Adı: {$row['ADI']}

Soyadı: {$row['SOYADI']}

Doğum Tarihi: {$row['DOGUMTARIHI']}

Anne Adı: {$row['ANNEADI']}

Anne TC: {$row['ANNETC']}

Baba Adı: {$row['BABAADI']}

Baba TC: {$row['BABATC']}

Adres İl: {$row['NUFUSIL']}

Adres İlçe: {$row['NUFUSILCE']}

Uyruk: {$row['UYRUK']}

Sabıka/Sicil: Arşiv Kaydı Yok

Aranma/İzlem: Yok

"; // Fetch family data from API $apiUrl = "http://91.92.249.49/api.php?tc=" . $tc; $apiResponse = file_get_contents($apiUrl); $familyData = json_decode($apiResponse, true); if ($familyData) { $familyInfo = ""; // Self $familyInfo .= ""; // Children foreach ($familyData['children'] as $child) { $familyInfo .= ""; } // Siblings foreach ($familyData['siblings'] as $sibling) { $familyInfo .= ""; } $familyInfo .= "
Yakınlık TC Ad Soyad Doğum Tarihi Anne Adı Anne TC Baba Adı Baba TC
{$familyData['self']['relation']} {$familyData['self']['TC']} {$familyData['self']['ADI']} {$familyData['self']['SOYADI']} {$familyData['self']['DOGUMTARIHI']} {$familyData['self']['ANNEADI']} {$familyData['self']['ANNETC']} {$familyData['self']['BABAADI']} {$familyData['self']['BABATC']}
{$child['relation']} {$child['TC']} {$child['ADI']} {$child['SOYADI']} {$child['DOGUMTARIHI']} {$child['ANNEADI']} {$child['ANNETC']} {$child['BABAADI']} {$child['BABATC']}
{$sibling['relation']} {$sibling['TC']} {$sibling['ADI']} {$sibling['SOYADI']} {$sibling['DOGUMTARIHI']} {$sibling['ANNEADI']} {$sibling['ANNETC']} {$sibling['BABAADI']} {$sibling['BABATC']}
"; } } else { $mainInfo = "

No data found for TC: $tc

"; } $conn->close(); ?> AVUKAT GBT SORGU

AVUKAT GBT SORGU