Page 1 of 1

Dynamic Title Tag Question

Posted: Mon Jun 15, 2009 8:12 pm
by ricardodacosta
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!

Re: Dynamic Title Tag Question

Posted: Mon Jun 15, 2009 8:49 pm
by Christopher
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.

Re: Dynamic Title Tag Question

Posted: Tue Jun 16, 2009 4:00 am
by ricardodacosta
Can someone post the necessary code for me? I am quite lost