帝国cms调用搜索的关键词

伪静态搜索

<?php
$urls =  $_SERVER["QUERY_STRING"];
$sid = explode("=",$urls);
$sids = $sid[2];
$res =  $empire->fetch1("select * from {$dbtbpre}enewssearch where searchid = $sids");
$sql = $empire->query("select * from {$dbtbpre}enewssearch where keyboard LIKE '%$res[keyboard]%' ORDER BY onclick DESC");
while($tr=$empire->fetch($sql)){
$url = '/search-0-'.$tr[searchid].'.html';
echo '搜索关键词:'.$tr[keyboard].'<br>';
echo '关键词url:'.$url.'<br>';
echo '搜索次数:'.$tr[onclick].'<hr>';
}
?>

© 版权声明
THE END
喜欢就支持一下吧
点赞7
相关推荐
评论 抢沙发

请登录后发表评论

    暂无评论内容