Home >Backend Development >PHP Tutorial >The tab effect code created by pure PHP does not require JS

The tab effect code created by pure PHP does not require JS

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 08:43:581163browse

1. Based on get judgment, get get to generate css

Copy code The code is as follows:




2. When you click, you can open the link

Copy the code The code is as follows:




  • Beijing< ;/li>
    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'] . '< /a>
  • ';
    }
    ?>


'.$recuit_content_row['recuit_name'].'

< td width="80" align="right">
'.$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_query);
IF ($ recuit_rows ['uid'] == '')
{
echo '& lt; a href="../job.php?action=recuit" border="0" /> ';
}
else
{
echo ' ';
}
?>



The above has introduced the tab effect code created by pure PHP without using JS, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.