, Menu problems

Source: Internet
Author: User
Online, etc. menu question Product Table. The structure is FieldTypeCollationNullKey & nbsp; ------------------------------------------------ c_idint (11) (NULL) online, etc. Menu Question
The structure of the product table is as follows:
Field Type Collation Null Key
------------------------------------------------
C_id int (11) (NULL) NO PRI
C_pid int (11) (NULL) YES
C_path varchar (255) utf8_general_ci YES
C_name varchar (255) utf8_general_ci YES

This is the function I wrote to get the menu.
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 make it like this. how can I write it? the main reason is that the CSS style does not work?


------ Solution --------------------
This is js, and this does not require data. it is similar to the navigation menu. you can search for the sliding menu.
------ Solution --------------------




Sliding Door

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.