Reply
meta tag problem
Old 06-28-2007, 08:22 PM meta tag problem
Novice Talker

Posts: 9
Hi all!

I am having a problem with meta tags and I hope this is to right forum to put it (Othervise I kindly ask the admins to move it right).

This is the problem.

I got a webpage which is built on php and mysql. the webpage is an ad site where people can post ads. The site is divided in to 3 different "categories" or files..

1. header.php (always there)

2. database content

3. footer.php

My problem is this. when google index the database generated pages (the ads), it picks keywords and descriptions from the header.php instead of the middle (database) section of the site.

Is there any way to change the meta tags or the php coding so that google uses the database driven contents for descriptions etc instead?

Thanks in advance
dalailama is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-28-2007, 08:36 PM Re: meta tag problem
Riane's Avatar
Super Talker

Posts: 149
Name: Jordan
Location: Chicago, IL
With using includes, you are stuck with that single header file, UNLESS you set up a second header page.

So instead of database.php having:
Code:
<? include('header.php' ?>
 databasecontent
 <? include('footer.php' ?>
You could always try using:
Code:
 <? include('header2.php' ?>
 databasecontent
 <? include('footer.php' ?>

If you can't use that method, then you'll just have to edit your header's meta tags to include those extra keywords. I'm sure there is some sort of PHP script you can create that will allow you place some sort of function within it, so that when it's on such-and-such-page it will pick out randomly generated keywords, or ones you specifiy within the script..
Riane is offline
Reply With Quote
View Public Profile Visit Riane's homepage!
 
Reply     « Reply to meta tag problem
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12154 seconds with 12 queries