Forum Moderators: coopster
title
keywords
metaname
and is there a way that it will automatically display or determine wht the best keywords are to be displayed.im using php
thks for your help
no on live pages, eacht time that a link is opened it should automatically creat the title etc, and search its self for the right correct kewords to be displayed.Im not sure if it is possible but i have seen some pages on this forum using the same kind of script and i have seen it on others as well i just dont know wht kind of script it is.........
cheers
URL ¦ Title ¦ Metakeywords
For each page on your site, enter the URL, title and keywords you'd like that page to use (key words separated by commas!)
Then in your page template, add this script:
<?php
$result=mysql_query("SELECT * FROM metadata WHERE URL='".$HTTP_SERVER_VARS['url']."'");
?>
That will look in your database for the record that matches the URL of the page being requested.
Then use that to print out your stuff:
<?php
$row=mysql_fetch_array($result);
print("<title>".$row['Title']."</title>");
print("<meta name='keywords' content='>".$row['Metakeywords']."'>");
?>