Your IP : 3.135.215.149
<?php
$db = new mysqli("localhost","root","","covismlm");
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;
}
mysqli_close($db);
?>