Online and so on, menu issues
The Product class table, the structure is like this
Field Type Collation Null Key
--------- ------------ --------------- ------ ------
c_id Int (one) (NULL) NO PRI
C_pid Int (one) (NULL) YES
C_path varchar (255) Utf8_general_ci YES
C_name varchar (255) Utf8_general_ci YES
This is what I wrote. Get menu functions
PHP Code
function Menuhead ($pid =0) { global $mydb; $rs = $mydb->query ("Select C_id,c_pid,c_name from Pdt_catagories where c_pid=". $pid. "); if ($rs->rnum ()) { echo '
; while ($f = $rs->movenext ()) { echo '
- '; if (! $pid) echo '. $f ["C_name"]. "; else Echo '. DISPLAYSTR ($f ["C_name"],26). echo $pid? ' ':''; Menuhead ($f ["c_id"]); echo $pid?': '; Echo '
'; } Echo '
; }}
I want to do this, how to write Ah, mainly CSS style will not
------Solution--------------------
This is JS, and this doesn't need data. Similar to the navigation menu you search the sliding menu.
------Solution--------------------
<title>Sliding Doors</title>