Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5531

bbhank on "Dynamic Menus"

$
0
0

After exhaustive searching on this subject it seems that such a menu system has only been done with java, jquery, ajax or some other equally cryptic and difficult to understand programming language. PHP is the ticket here. So, not being a programmer or a PHP guru, there was little option but to learn the most efficient and simple method to a menu. Since WordPress is built on PHP, the logic is to keep with the program.
Having seen that menus can be made with option-select dropdowns that can be fed by PHP from a database I decided to try that. I hacked out some PHP that placed the needed items in each dropdown based on what is selected in the previous dropdown. It's ugly but it works so far.
That led me to this question: How to get the last selection to actually go to the selected WordPress page. The last dropdown gives a list of titles of WordPress pages, not posts, that once selected need to be opened. A button can also be used - Just need something that works. I will post this once the last part is done. Also looking for how to work with the look of this system - Cosmetics. First, though, and foremost is to get the last selection to go to the selected page. Solutions?
I tried using lists and css but that requires preloading all the data. Not an option when you're dealing with thousands of rows. I saw some tricky java and stuff that did this but again, this needs to be all PHP.


Viewing all articles
Browse latest Browse all 5531

Trending Articles