The tab effect implemented by php is determined based on get to obtain the css generated by get and the corresponding content. of course, the efficiency is definitely not static. Here are the ideas and methods.
1. get and generate css based on get
The code is as follows:
2. click to open the link.
The code is as follows:
- Beijing
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'
- '. $ Recuit_city_row ['City _ name'].'
';
}
?>
More recruitment information
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 ['recuit _ name'].'
|
'. $ 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'
| '. $ Recuit_content_row ['recuit _ name'].' |
'. $ Recuit_content_row ['username'].' |
';}}?>
Include_once ("../include/common. inc. php ");
$ Recuit_query = mysql_query ("select * from cdb_plugins_recuit_userinfo where uid = $ discuz_uid ");
$ Recuit_rows = mysql_fetch_assoc ($ recuit_query );
If ($ recuit_rows ['uid'] = '')
{
Echo '';
}
Else
{
Echo '';
}
?>