View file public_html/vipadz/searchad.php

File size: 0.99Kb
<?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 - Search Advertises");

if($adminlog==1){

 $q=formget("q");

echo '<div class="title">Search Result</div>';



 $sdataa=mysql_query("SELECT * FROM advertise WHERE name LIKE '%$q%' OR url LIKE '%$q%' ORDER BY id DESC");

 if(mysql_num_rows($sdataa)>0){

while($show=mysql_fetch_array($sdataa)){

echo '<a href="advd.php?id='.$show["id"].'"><div class="ua">Ad ID: '.$show["id"].'<br/>Url: '.$show["url"].'<br/>Status: '.$show["status"].'</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');
}

?>