HI,
I´m relatively new to PHP and almost everuything I "know" is based on moderating existing scripts.
At th moment I´m working on a FAQ script, which is template based. The global.tpl template is used for all other pages generated within the script. These are:
- category view
- questions per category view
- question/answer view
The three templates above only contain a table with some string requesting the information frm MySQL. The head section of each page is contained in the global.tpl template file.
Now what I´d like to do is the following: whenever a visitor opens the index page of the faq section, a predefined title must be show in the <tilte> tag. When a category is choosen, the <title> tag must contain the name of the category, and when a specific question is selected, the <title> tag must contain that specific question.
Can someone please help me? What types of functions do I have to use? Do I have to include a file and then use if statements to parse the variables depending on the page viewed by the visitor?
(If there are any Dutch programmers out there, please email me in Dutch if that makes it all more understandable)
Kind regards,
Wolter