/**
* Silurus Classifieds Builder
*
*
* @authorSnowHall - http://snowhall.com
* @websitehttp://snowhall.com/silurus
* @emailsupport@snowhall.com
*
* @version2.0
* @dateMarch 7, 2013
*
* Silurus is a professionally developed PHP Classifieds script that was built for you.
* Whether you are running classifieds for autos, motorcycles, bicycles, rv's, guns,
* horses, or general merchandise, our product is the right package for you.
* It has template system and no limit to usage with free for any changes.
*
* Copyright (c) 2009-2013
*/
include("./include_php/init.php");
$tag = trim($_GET['tag']);
$type = intval($_GET['type']);
if($tag!='')
{
$q = mysql_query("select * from City where Title like '%".mysql_escape_string($tag)."%' order by Title");
if(mysql_numrows($q) > 0)
{
print '
while($arr = mysql_fetch_assoc($q))
{
$pos = strpos(strtolower($arr['Title']),strtolower($tag));
print '
'.substr($arr['Title'],0,$pos).' '.substr($arr['Title'],$pos,strlen($tag)).''.substr($arr['Title'],$pos+strlen($tag)).'';
}
print '
';}
}
?>
一键复制
编辑
Web IDE
原始数据
按行查看
历史