ah now hold on a second. You'll notice i said
Assuming that the $row array contained the results from your query.
. What i've given you wont work on it's own - you need to establish a connection to the database, run a query to return the values that you need, and then take those results and add them to an array. THEN you can use what i've given you to take the results from the array and put them into your title.
I dont have my code book with me to explain all the above steps to you, but sugegst that you check out www.php.net and read up about connecting to mysql - all the info is there, and it's just being lazy if you ask people to rewrite it for you here without even bothering to read up about it yourself! If you have any problems then come back by all means.
If you're struggling with this i'd also suggest you get a book - I use "web development with PHP and MySQL" by luke someone and laura welling (or laura someone and luke welling, cant remember which) - it's a very good book and it explains everything well.