Yes that´s a good solution!
but the $title that i want is from the database.
I could do this in the index.php file
function titleGen($page){
switch($page){
case "Home":
$that_title = mysql_query("select title from news where id = '$id'");
$titles = mysql_fetch_assoc($that_title)
$title = $titles['title'];
}
return $title;
}
but i don´t think that´s a good ideia because that is done in home.php file when i extract the content from the database.
do u have another ideia?