Končano

Create PHP tree menu - re

-------------------DB-Structure------------------

| ID Name Parent Sort |

| 1 menu1 0 3 |

| 2 menu2 0 2 |

| 3 menu3-1 6 1 |

| 4 menu3-2 6 1 |

| 5 menu3-2-1 4 1 |

| 6 menu3 0 1 |

---------------------------------------------------

The generated html should look like this:

<ul>

<li><a href="?c=3">menu3</a</li>

<li><a href="?c=2">menu2</a></li>

<li><a href="?c=1">menu1</a></li>

</ul>

When user clicks menu1 it should look like this:

<ul>

<li><a href="?c=3" class="active">menu3</a>

<ul>

<li><a href="?c=3_3">menu3-1</a></li>

<li><a href="?c=3_4">menu3-2</a></li>

</ul>

</li>

<li><a href="?c=2">menu2</a></li>

<li><a href="?c=3">menu3</a></li>

</ul>

If user then clicks menu3-2 it should look like this:

<ul>

<li><a href="?c=3" class="active">menu3</a>

<ul>

<li><a href="?c=3_3">menu3-1</a></li>

<li><a href="?c=3_4" class="active">menu3-2</a>

<ul>

<li><a href="?c=3_4_5">menu3-2-1</a></li>

</ul>

</li>

</ul>

</li>

<li><a href="?c=2">menu2</a></li>

<li><a href="?c=3">menu3</a></li>

</ul>

-------------------------------------------------------------------------

From the beginning only the menu-items with Parent-ID "0" will show up.

When clicking on an menu-item the page should reload and show the sub category, based on the query string.

Requirements:

No CSS.

No Javascript.

Get menu structure from mySQL into an array.

Generate the menu from the created array.

Please let me know if I wasn't clear enough.

Znanja: MySQL, PHP

Več: tree query, look php id, clear array c, c clear array, category php id, beginning php and mysql 5, create php, php javascript class, tree category php, php javascript tree, menu show, structure tree, html javascript tree, mysql query php, create html based menu, create dashboard using html css javascript, menu php mysql css, php css menu, tree php css, javascript tree, php html array, tree structure css mysql php, create user menu, menu css mysql, javascript array php array

O delodajalcu:
( 27 mnenja ) Orebro, Sweden

ID projekta: #5328508

Dodeljeno:

rodelarode

Sir, I am a highly skilled php developer and I can write the script for generating the menu items in proper order. I can start coding now and can complete by next 24 hours. Thanks Rode

$30 USD v 1 dnevu
(20 mnenj)
5.4

5 freelancerjev ponuja v povprečju za $20 na tem delu

namashivam

Hi, we are [login to view URL], please visit our website [login to view URL] to know us better. We have a full team of designer and developer to assist you or work for you on your project. You can also check our design quality her Več

$25 USD v 2 dneh
(4 Ocen)
4.1
nittilegupta

Hi, Give me. It's an easy job. I am confident to get this done easily. Looking forward for your reply, regards, Nittile

$19 USD v 1 dnevu
(3 Ocen)
3.6
FarazAbbas

A proposal has not yet been provided

$15 USD v 1 dnevu
(1 Ocena)
1.2
denis01

A proposal has not yet been provided

$10 USD v 1 dnevu
(0 Ocen)
0.0