Forum Moderators: coopster
mydomain/news.php?id=25 mydomain/this-is-seo-url
if(isset($_REQUEST["id"])&&($_REQUEST["id"]<>"")&&($_REQUEST["id"]<>0))
{
$id=$_REQUEST["id"];
if(preg_match("/\/news.php/",$_SERVER['PHP_SELF']))
{
$sql=mysql_fetch_array(mysql_query("select * from new where id=$id"));
$title_str.=$sql["news_name"]." : ";
<title><?php echo $title_str; ?></title> // show dynamic title