Home  >  Article  >  Backend Development  >  ,菜单有关问题

,菜单有关问题

WBOY
WBOYOriginal
2016-06-13 13:49:41834browse

在线等,菜单问题
产品类表,结构是这样的
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  

这是我写的获取菜单的函数

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
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 '
'; } }

我想做成这样的,请问该怎么写啊,主要就是CSS样式不会


------解决方案--------------------
这个是js的 而且这个不需要数据可吧 类似导航菜单 你搜一下滑动菜单 网上多的是
------解决方案--------------------




Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn