|
|
جستجوی سایت
if (@$_GET['a']=="search" AND @$_GET['txt']){
@$tex=strip_tags($_GET['txt']);
@$cid=$_GET['cid'];
$wh='where';
$wh.=" title LIKE '%$tex%' OR mtext LIKE '%$tex%' OR text LIKE '%$tex%'";
if (@$cid){$wh.=" AND cid='$cid'";}
$qa=mysql_query("select * from items ".$wh." order by id desc limit 40");?>
}
}else{header ("location: index.php");}?>
|
|||||||||||||||||||||||||||||||||||||