I am trying to make the page title the same as the gallery title on my site. This is my method, but it doesnt work.
on the page after I call the title from the database:
$pageTitle = $row['title'];
//page title
$page = array();
$page['title'] = 'Gallery - $pageTitle';
Then in my header:
<title><?php echo $page['title'];?></title>
But my page title is just the url. How would I get this to work?