Re: Dynamic Multi Level Drop Down Menu in PHP/MYSQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'd suggest this is rather a trivial problem whereby you connect to a database, run one simple "select" query, and loop round results building a simple string containing <UL> and <LI>. There are many tutorials out there showing how to "mysql_connect", then "mysql_query", then "while($row = mysql_fetch_array()". I use the "." operator to concatenate strings, then "echo" to put it out the screen.....





________________________________
From: Joe Forsythe <jforsythe@xxxxxxxxxxxxxxxxxx>
To: php-objects@xxxxxxxxxxxxxxx
Sent: Tuesday, 1 June, 2010 15:37:02
Subject: Re:  Dynamic Multi Level Drop Down Menu in PHP/MYSQL

  
What is the code you are using right now, what is this end result you 
need in HTML, and what error(s) are you getting?
--
Joe

On May 30, 2010, at 9:06 PM, Sovichea SOU wrote:

> Hello everyone,
>
> Thanks for your reply, but I need only ul and li loop in php.
> Could anyone help me to create that function?
>
>
>
> Regards,
>
> Vichea
>
> On Fri, May 28, 2010 at 9:29 PM, Atkinson, Robert
> <ratkinson@xxxxxxxxxxxxx>wrote:
>
>>
>>
>>
>> http://www.logon2.com.au/blog/archive/troubleshooting/accessible- 
>> valid-dropdo
>> wn-menu-or-popup-menu-using-css-and-semantic-html/
>>
>> -----Original Message-----
>> From: php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com> 
>> [mailto:
>> php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com>] On
>> Behalf Of Sovichea SOU
>> Sent: 28 May 2010 11:02
>> To: php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com>
>> Subject:  Dynamic Multi Level Drop Down Menu in PHP/ 
>> MYSQL
>>
>> Hello everyone,
>>
>> I want to create a limited drop down menu with <ul>.
>> It will look like this:
>>
>> <ul>
>> <li>Item 1</li>
>> <li>Item 2
>> <ul>
>> <li>Item 2a</li>
>> <li>Item 2b</li>
>> </ul>
>> </li>
>> </ul>
>>
>> with this database:
>> menu: id, title, link, parentid
>>
>> Please help me to write php code...
>>
>> Many thanks and regards,
>>
>> Vichea

[Non-text portions of this message have been removed]


 

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux