How to display this on another page?

This is the index.php

<?php $page_title="Sparkle and Glitter"; $nav="glitter"; $cat="special"; include('../../incs/header.php'); ?>

<?php
	$number = 39;
	$category = '101';
	//$sort = array('views', 'DES');
	include $cutepath.'/show_news.php';
?>

This is the header.php page


<title><?php if ( $number == 39 ) {echo "Viewing 39 ";} else {echo "";} ?><?php if ( $page_title == Sets ) {echo "Cursor";} else {echo "";} ?> <?php echo $page_title; ?> <?php if ( $page_title == Sets ) {echo "";} else {echo "Cursors";} ?></title>

I’m trying to get the title to say Viewing 39 when the $number is 39. But when I do it, it doesn’t work. It shows it on page that has $number = 1 or 2 or 3 or whatever. Even though I just want it to show when it’s 39.

You’ll need to define $number=39 before you include the header.php file.