troy1984
10-04-2004, 03:07 AM
Hello,
I'm building a site using php, mysql etc.
The site is Object oriented
This is how my site works (simplified)
I have a dbase, templates, dbclass, tplclass and a controll file.
The controll file uses the tpclass and dbclass to put the content from the database in the template.
<#titel#> in the template is where the content from the collomn title in the database will appear.
My site makes it possible to add pages online.
It stores the content into the dbase when a page is added and will fill up a template when requested.
the problem is that the links in the menu use the same column (title)for their links as the title from the page, i need a way to show all the titles (from the added pages) in the menu and at the same time only 1 title as title of the page (in the main text field of the website).
It's hard to explain so I attached a zip file in the hope that if you take a look at it you'll see what I mean.
I want to thank all the readers of this forum and the people that take time to help others as myself, I know how much u guys help.
Greetings
I'm building a site using php, mysql etc.
The site is Object oriented
This is how my site works (simplified)
I have a dbase, templates, dbclass, tplclass and a controll file.
The controll file uses the tpclass and dbclass to put the content from the database in the template.
<#titel#> in the template is where the content from the collomn title in the database will appear.
My site makes it possible to add pages online.
It stores the content into the dbase when a page is added and will fill up a template when requested.
the problem is that the links in the menu use the same column (title)for their links as the title from the page, i need a way to show all the titles (from the added pages) in the menu and at the same time only 1 title as title of the page (in the main text field of the website).
It's hard to explain so I attached a zip file in the hope that if you take a look at it you'll see what I mean.
I want to thank all the readers of this forum and the people that take time to help others as myself, I know how much u guys help.
Greetings