/    Sign up×
Community /Pin to ProfileBookmark

Plz Help with editing menu content with PHP!

Hi.
I would be GREATFULL if someone could help me out…I’m infront of my screen all night, for about 15 Hours without sleeping at all, trying to figure out how to make a script…
so heres what i have…I have the site’s menu which is javascript and the content is taken from MySQL using PHP.so far it works fine by changing the content direct from MySQL with phpmyadmin.now i want to make a php script in the admin’s area with which i will be able to change the menu’s content…
This is what i can’t figure out…

All the contents are taken from a table in the db.the table’s structure is like this:

[center]

id|mid|mpos|mtarget|mico|mname_GR|mname_EN

[/center]

where id:an auto increment no
mid: a 10 digit char number which shows the full place on the menu of the item
mpos: an integer whivh shows the place on the menu of the item (main,submenu…)
mtarget: the target!!
mico:which ico will be next to the text (blank,arrow…)
mname_GR/_EN:The text of the item (HTML) dipending on which language will be selected.

i made a quick graph with the menu to show you who it is…(SEE ATTACHMENT) the 10digit numbers are the mid instead the mname_GR/_EN

now i can’t find a way so that i can edit this without the use of phpmyadmin…

Does anyone out there had a simullar problem or i’m the only one ?

PLZ help me thnx…..
Ask me if you don’t understand what i mean because im tooooo tired so i dont know if i let my self clear…. ?

PS:I’m not asking you to write me the full code just a possible solution or ideas or why not a premade code or anyway something….

[upl-file uuid=7fcae22b-fbe1-435b-a211-c1864648b268 size=6kB]sxediagramma.GIF[/upl-file]

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@StashXauthorJul 15.2005 — the SQL UPDATE query is good for this

http://www.google.com/search?hl=en&q=mysql+%22UPDATE%22&btnG=Google+Search[/QUOTE]

I know i have to use UPDATE qeury...!

I Know how to use the SQL...

I know how to program..

I know....

What i don't know is the way to edit the db....

for example. Do i have to use Dropdown menus, Tree menus or what...

How can i make it work is what i don't know...I haven't seen something simular since now so i can't thing the way of doing it...i'm asking for some sort of algorithm here..not a php-sql index!!!:p

tnx anyway for your posting BeachSide...

I'm really empty of any ideas....PLZ someone help me....
Copy linkTweet thisAlerts:
@HuevoosJul 15.2005 — Sorry, I can't understand what you wanna do if you can't do it with an update query
Copy linkTweet thisAlerts:
@StashXauthorJul 15.2005 — Sorry, I can't understand what you wanna do if you can't do it with an update query[/QUOTE]
No,no,no,no....

I know i have to use update query and i know this is the only way i have use except Insert and delete...

I know how to make it work concerning to the php-sql code(sql queries DELETE, INSERT and UPDATE) what i'm asking is the "interface".

How do i have to make it so that the administrator will be able to move the menu items down,up,move them in a submenu or the root/main menu,delete and create new items/submenus and stuff.

I mean i want to do something like this but in php and not in aspx as they do it.

[URL=http://www.treeview.net/treemenu/treeview_builder.asp]http://www.treeview.net/treemenu/treeview_builder.asp[/URL]

(THE "MENU" MANAGER IS HERE:[URL=http://www.favoritesmanager.com/]http://www.favoritesmanager.com/[/URL] Press "Enter Manager" to see it working!!!)
×

Success!

Help @StashX 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.23,
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,
)...