Hope someone can help..........
I have a php page, let's say, http://www.mydomain.co.uk/mypage.php?id=1
Now what I want is for the Title tag to display some words based on the id of the page.
I have this PHP code so far:
if ('$id' == 1) {
$mypage1 = "This is Area 1";
} else if ('$id' == 2) {
$mypage1 = "This is Area 2";
} else {
$mypage1 = "No Area Selected";
}
Now my Title Tag looks like this:
<title><? echo $mypage1 ;?></title>
Each time I run the page the Title says 'No Area Selected'...........
...........it's probably a really simple question but what am I doing wrong and why is it not displaying 'This is Area 1'????
Thanks