This is modified by the ASP two-level side-pull menu.
Copy the Code code as follows:
Require ('.. /connections/lr.php ');
mysql_select_db ($database _lr, $LR);
$query = mysql_query ("SELECT * from Bigclass order by sort");
$j = 0;
while ($row =mysql_fetch_array ($query))
{$j = $j +1;
$bigclassid = $row [' Bigclassid '];
$bigclassname _leftmenu= $row [' Bigclassname '];
if ($htmlname ==1) {
$bigclass _htmlname_leftmenu= $bigclassname _leftmenu;//Big class name
if (Substr_count ($bigclass _htmlname_leftmenu, "") >0) {
$bigclass _htmlname_leftmenu= Str_replace ("", "-", $bigclass _htmlname_leftmenu);
}
}
if ($htmlname ==0) {
$bigclass _htmlname_leftmenu= $bigclassid;
}
?>
-
mysql_select_db ($database _lr, $LR);
$query _small = mysql_query ("select * from Smallclass where bigclassid= ' $bigclassid ' ORDER by sort");
while ($rs =mysql_fetch_array ($query _small))
{
$smallclassid _small_leftmenu= $rs [' Smallclassid '];
$smallclassname _small= $rs [' Smallclassname '];//small class name
if ($htmlname ==1) {
$smallclass _htmlname= $smallclassname _small;
if (Substr_count ($smallclass _htmlname, "") >0) {
$smallclass _htmlname= Str_replace ("", "-", $smallclass _htmlname);
}
}
if ($htmlname ==0) {
$smallclass _htmlname= $smallclassid _small_leftmenu;
}
?>
-
}?>
}?>
|
The above introduces the real Pat nude model photography site PHP to the right pull menu implementation code, test use, including the actual shooting nude die photography site aspects, I hope to be interested in PHP tutorial friends helpful.