Question: How to pull info from MySQL to populate title tag?
Current code:
Include/common.inc.php
<title><? echo PAGE_TITLE; ?></title>
________________________________________
Individual pages
<?
include("include/common.inc.php");
define ("PAGE_TITLE", "Blablablablablabla");
ETC ECT ETC ETC ...
________________________________________
I want to customize further the PAGE_TITLE in the file details.php (www.mysite.com/details.php?listid=... ) to reflect information taken from MySQL such as the country name.
________________________________________
What I tried:
define ("PAGE_TITLE", "Properties for sale in $record[countryname]");
I tried $_GET, $_POST, $record, $data, etc ... nothing seems to pull the information.
Is it because it is in the "define" function?
I am at a loss. Any suggestions or links would be appreciated.
Warm regards.
Natasha