Your IP : 3.23.101.75
<?php
$db = new mysqli("localhost","covimbdk_winner","T1a6VQbXNlnX","covimbdk_covis");
if(isset($_GET['val'])){
$search = $_GET['val'];
$entry = '';
$sql = $db->query("SELECT * FROM user WHERE user='$search' OR id='$search' LIMIT 1");
if($search == ''){
$entry = 0;
}
elseif($search == '0'){
$entry = '';
}
elseif($sql->num_rows < 1){
$entry = 1;
}
else {
$row = $sql->fetch_assoc();
$entry = '<strong style="background-color: green;color:white;padding:2px"> Verified: '.ucwords($row['firstname']). ' '. ucwords($row['lastname']).'</strong>';
}
echo $entry;
}
if(isset($_GET['val2'])){
$search = $_GET['val2']?trim($_GET['val2']):'';
$res=0;
$sql = $db->query("SELECT * FROM user WHERE user='$search' LIMIT 1");
if($sql->num_rows == 1){
$row = $sql->fetch_assoc(); $id = $row['id'];
$sq = $db->query("SELECT * FROM cuser WHERE id='$id' LIMIT 1");
$res = $sq->num_rows;
}
echo $res==1 ? '<em style="color:green;padding:2px">Sponsor Verified</em><br>' : '<em style="color:red;padding:2px">User not in cycler </em><br>';
}
mysqli_close($db);
?>