纯php打造的tab选项卡效果代码(不用js)

前端之家收集整理的这篇文章主要介绍了纯php打造的tab选项卡效果代码(不用js)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1.根据get判断,获取get生成css

代码如下:


2.点击的时候,就可以打开链接

代码如下:


  • include_once ("config/db.inc.php");
    $recuit_city_select = "select * from cdb_plugins_city where city_id in(13,14,15,16)";
    $recuit_city_query = mysql_query ( $recuit_city_select );
    while ( $recuit_city_row = mysql_fetch_assoc ( $recuit_city_query ) ) {
    $cid = $recuit_city_row['city_id'];
    echo '
  • ';
    }
    ?>




if(!$_GET['city_id'])
{ $recuit_content_select = "select * from cdb_plugins_recuit where city_id= 12 limit 0,8";
$recuit_content_query = mysql_query($recuit_content_select);
while($recuit_content_row = mysql_fetch_assoc($recuit_content_query))
{
echo '
'.$recuit_content_row['username'].'
}
}
else
{
$recuit_content_select = "select * from cdb_plugins_recuit where city_id={$_GET['city_id']} limit 0,10";
$recuit_content_query = MysqL_query($recuit_content_select);
while($recuit_content_row = MysqL_fetch_assoc($recuit_content_query))
{
echo '
}
}
?>


猜你在找的PHP相关文章