, menu-related issues

Source: Internet
Author: User
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

This is JS, and this doesn't need data. Similar to the navigation menu you search the sliding menu.

<title>Sliding Doors</title>

    • asp

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.