
Originally Posted by
gaogier
it would be more efficient (and much easier to make changes) if you made an array to hold all the titles, and then just check if the key exists:
PHP Code:
<?php
function checkPage($key){
// define all your titles
$titles = array(
'quests' => 'Quests'
,'randoms' => 'Random Events'
,'etc.' => 'and so on, and so forth'
);
// check if the requested title exists
// return it if it does
// return default title if it does not
return !empty( $titles[$key] )?
$titles[$key]:
'the Solution to all Your RuneScape Problems';
}

Originally Posted by
gaogier
I now need to get the title of the guide type showing.
showing where?
Bookmarks