Hello there, here Im looking for help
I have a php Question & Answer script that currently has an static title tag.
I would like to have the title of each question to be the title tag
On my database, I have a "question" table and there is a "title" field which is what I would like to somehow call on my title tag based on the "questionid" also.
Can someone tell me how to do this
Thanks!
Dynamic Title Tag Question
Moderator: General Moderators
-
ricardodacosta
- Forum Newbie
- Posts: 2
- Joined: Mon Jun 15, 2009 8:10 pm
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Dynamic Title Tag Question
Fetch the row from the database that has the questionid you want and then display the title value (e.g. <?php echo $row['title']; ?> ) in both the heading and body of the page. There are many examples in the online PHP manual.
(#10850)
-
ricardodacosta
- Forum Newbie
- Posts: 2
- Joined: Mon Jun 15, 2009 8:10 pm
Re: Dynamic Title Tag Question
Can someone post the necessary code for me? I am quite lost