Forum Moderators: coopster

Message Too Old, No Replies

PHP & Menus

Can I make a dynamic menu with PHP & MYSql?

         

Aardwolf

6:27 pm on Aug 2, 2004 (gmt 0)

10+ Year Member



Firstly I am a fairly recent newbie to PHP & MYSQL but I am catching on pretty well. I would like to use them to build a dynamic menu system for a catalog type website.

I have several 'category' names that can change. I would like to recall the category names from the database and use them to build a set of menu 'buttons'. When a button is pressed, I would like to assign & pass a variable (the category actually) back to another php script that searches the database for all items in that category and builds a display page.

I have most of it figured out except the part about how I can construct the menu so I assign & pass a different variable out of the menu when each button is pressed.

I am looking for some help in pointing me in the right direction.

Thanks

WhosAWhata

10:12 pm on Aug 2, 2004 (gmt 0)

10+ Year Member



<a href="script.php?passvar=whatever"><img src="button.gif"></a>

Aardwolf

11:07 pm on Aug 2, 2004 (gmt 0)

10+ Year Member



Got it to work now,

Thank You!