File size: 1.06Kb
<?php
/************************************
Script : Adnetwork
Website : http://facebook.com/pranto007
Script is created and provided by Pranto (http://facebook.com/pranto007)
**************************************/
include '../db.php';
include '../functions.php';
headtag("$SiteName - User Search");
if($adminlog==1){
$q=formget("q");
echo '<div class="title">Search Result</div>';
$sdataa=mysql_query("SELECT * FROM userdata WHERE (username LIKE '%$q%' OR email LIKE '%$q%' OR verimobile LIKE '%$q%') ORDER BY id DESC");
if(mysql_num_rows($sdataa)>0){
while($show=mysql_fetch_array($sdataa)){
echo '<a href="user.php?id='.$show["id"].'"><div class="ua">Email: '.$show["email"].'<br/>Username: '.$show["username"].'<br/>Name: '.ucfirst($show["firstname"]).'<br/>User ID: '.$show["id"].'</div></a>';
}
}
else {
echo '<div class="ad">No Result Found!</div>';
}
echo '<a href="index.php?goto=home"><div class="ua" align="center"><b>HOME</b></div></a>';
include '../foot.php';
}
else {
header('Location:login.php?error=session&out=no&valid=no&session=no');
}
?>