
November 13th, 2006, 08:40 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 11
Time spent in forums: 2 h 35 m 21 sec
Reputation Power: 0
|
|
|
How to use this code for page title in PHP
Bellow is an instruction (SEOchat) with code that can be used to give apage title for dynamic pages.
I tried to use this, couldn't do it.
I couldn't really understand the instruction.
Can u put this in an example?
My site uses PHP
Basically what I want from this is to include the city and state name from database, in the title of the page.
----------------------------------------------------------
this is the SEOchat article,
"""Another advantage to using PHP is that you can make simple modifications to many scripts to create relevant page titles. Since this is the most important factor in SEO, special attention should be given to creating title tags that accurately reflect the page’s current content. Any HTML templates that are used in PHP pages can be altered to contain this line:
<title><?=$page_title?></title>
With this, $page_title can be set to a keyword rich text describing the page. Title text is also important in improving the click-through from SERP’s, so be sure that the title tags doesn’t read like spam, but more like a human created title."""
Last edited by gotit : November 14th, 2006 at 07:48 PM.
|