Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - dynamic menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

dynamic menu

 Post Reply Post Reply
Author
pilot99 View Drop Down
Groupie
Groupie


Joined: 05 July 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote pilot99 Quote  Post ReplyReply Direct Link To This Post Topic: dynamic menu
    Posted: 10 November 2005 at 8:24pm
ok can anyone help with this.
i have a system of showing things off a database it works great i have three different places i show things each showing different thing this is controlled by a cloum in a database called "show" then i also have a column called "order" which orders them depending on witch "show" they are assigned to i can change them manually but i want to change them using a drop down menu that dynamicly show 1,2,3... depending on how many variable there are under the "show"
does someone know how to do this.
i think its is done for the forum when ordering topics.
 
thanks
Back to Top
Scott07 View Drop Down
Groupie
Groupie


Joined: 04 July 2002
Location: United Kingdom
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scott07 Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2005 at 3:36pm
Can you explain that simpler? with prehaps a sample table to make it eaysier to understand.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2005 at 11:21am
Yeah, I think I know what you mean.

First you have to count how many items are in the table, then use that number to loop and create a dynamic drop down.

Also a nice touch is to select the current order value on each item, you do that by doing a check inside the loop.

I can send you some code of my own, if you need, as I develope things like these quite often.

I would also apprecite that you re-ask again and explain better, maybe you mean something else.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.