In the code below I want to have a else statement that says if no topic title exists, then make $pagetitle = this , as you can see it now says to make the pagetitle whatever the topic title is, but there are pages that do not have topic title and I still want those pages to have a page title.
//begin topic_title page title
global $dbi, $storyhome, $topicname, $topicimage, $topictext, $datetime, $user, $cookie, $nukeurl, $prefix, $multilingual, $currentlang, $articlecomm, $sitename;
$res = sql_query("select topictext from ".$prefix."_topics where topicid='$new_topic'", $dbi);
list($topic_title) = sql_fetch_row($res, $dbi);
$pagetitle = "- $topic_title";
//end topic_title page title
thanks to anyone that can help me! 🙂