/    Sign up×
Community /Pin to ProfileBookmark

Hi there,
I would like to create a php menu editor to edit this html menu. I have no idea where to start but would prefferably like to try and have a go at it myself.
How do i start about creating a menu editing script? (Delete menus, edit menus, add more etc etc)

[code]
<ul id=”nav”>

<li><a href=”#”>Percoidei</a>
<ul>
<li><a href=”#”>Remoras</a>

<ul>
<li><a href=”#”>Echeneis</a></li>
<li><a href=”#”>Phtheirichthys</a></li>
<li><a href=”#”>Remora</a></li>
<li><a href=”#”>Remorina</a></li>
<li><a href=”#”>Rhombochirus</a></li>

</ul>
</li>
<li><a href=”#”>Tilefishes</a>
<ul>
<li><a href=”#”>Caulolatilus</a></li>
<li><a href=”#”>Lopholatilus</a></li>
<li><a href=”#”>Malacanthus</a></li>

</ul>
</li>
<li><a href=”#”>Bluefishes</a>
<ul>
<li><a href=”#”>Pomatomus</a></li>
<li><a href=”#”>Scombrops</a></li>
<li><a href=”#”>Sphyraenops</a></li>

</ul>
</li>
<li><a href=”#”>Tigerfishes</a>
<ul>
<li><a href=”#”>Amniataba</a></li>
<li><a href=”#”>Bidyanus</a></li>
<li><a href=”#”>Hannia</a></li>

<li><a href=”#”>Hephaestus</a></li>
<li><a href=”#”>Lagusia</a></li>
<li><a href=”#”>Leiopotherapon</a></li>
<li><a href=”#”>Mesopristes</a></li>
<li><a href=”#”>Pelates</a></li>
<li><a href=”#”>Pelsartia</a></li>

<li><a href=”#”>Pingalla</a></li>
<li><a href=”#”>Rhyncopelates</a></li>
<li><a href=”#”>Scortum</a></li>
<li><a href=”#”>Syncomistes</a></li>
<li><a href=”#”>Terapon</a></li>
</ul>

</li>

</ul>
</li>

<li><a href=”#”>Anabantoidei</a>
<ul>
<li><a href=”#”>Climbing perches</a>
<ul>

<li><a href=”#”>Anabas</a></li>
<li><a href=”#”>Ctenopoma</a></li>
</ul>
</li>
<li><a href=”#”>Labyrinthfishes</a>
<ul>
<li><a href=”#”>Belontia</a></li>

<li><a href=”#”>Betta</a></li>
<li><a href=”#”>Colisa</a></li>
<li><a href=”#”>Macropodus</a></li>
<li><a href=”#”>Malpulutta</a></li>
<li><a href=”#”>Parosphromenus</a></li>
<li><a href=”#”>Pseudosphromenus</a></li>

<li><a href=”#”>Sphaerichthys</a></li>
<li><a href=”#”>Trichogaster</a></li>
<li><a href=”#”>Trichopsis</a></li>
</ul>
</li>
<li><a href=”#”>Kissing gouramis</a></li>
<li><a href=”#”>Pike-heads</a></li>

<li><a href=”#”>Giant gouramis</a></li>

</ul>
</li>

<li><a href=”#”>Gobioidei</a>
<ul>
<li><a href=”#”>Burrowing gobies</a></li>

<li><a href=”#”>Dartfishes</a></li>
<li><a href=”#”>Eellike gobies</a></li>
<li><a href=”#”>Gobies</a></li>
<li><a href=”#”>Loach gobies</a></li>
<li><a href=”#”>Odontobutidae</a></li>
<li><a href=”#”>Sandfishes</a></li>

<li><a href=”#”>Schindleriidae</a></li>
<li><a href=”#”>Sleepers</a></li>
<li><a href=”#”>Xenisthmidae</a></li>
</ul>
</li>

</ul>
[/code]

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@chesemonkylomaJul 18.2007 — there's only one f in preferably
Copy linkTweet thisAlerts:
@CrucialJul 19.2007 — You could parse through the existing menu and read it all into an array. Then provide forms to edit each array value. This doesn't sound like much fun though.

You would probably be better off designing a sql table to hold the individual elements (url, text, cssid) etc and then create forms to edit the sql data.

Then build the lists on the fly from the db.

Just my thoughts
×

Success!

Help @scottyrob spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...