0

I have categories, that came from database. I have to create pages for all the categories. For this I am creating menu and submenus are displaying categories. All submenu items must correspond pages.

Here is an example:

---------
Menu |
---------
item1 | open item1.php (came from database)
---------
item2 | open item2.php (came from database)
---------
item3 | open item2.php (came from database)
---------

6
Contributors
9
Replies
10
Views
6 Years
Discussion Span
Last Post by karthik_ppts
0

Seems easy enough.

I guess a crude way would to be to create a series of links running down the page. For the menu.

Or code into existing menus such as superfish.
http://users.tpg.com.au/j_birch/plugins/superfish/#examples

I am asking to create dynamic pages, Menu is creating from DB. Suppose I have 3 items named item1, item2 and item3 then three dynamic webpages will be create named item1.php, item2.php and item3.php respective menu items.

0

Yes you just pass those parameters to php and build the html for the menu.

Using whatever menu system you want.

0

Yes you just pass those parameters to php and build the html for the menu.

Using whatever menu system you want.

Then, How I can create page name and content dynamically..

0

With PHP... Look this is going around in circles.

All you are doing is building the html for your menu with PHP. Yes?

0

Take a look at the link below, its good for getting started building dynamic pages.
I can see above that you havent got many detailed answers on your questions here ;-)

Look at these videos, itll start you out, and you can definately learn to build dynamic pages taken from the database here.

http://www.developphp.com/

Go to the video tuts, and pick PHP/MySQL, scroll down to custom CMS.
It is an overkill for your question, but maybe it can take you even further.

Cheers, Klemme

0

No need to create pages dynamically for that. Just create one page and use that page for all by passing the id in query string. for eg. if you create item.php as a page then use item.php?id=1 for first item and item.php?id=2 for second item and goes on.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.