Log in

View Full Version : Copying text from my site



tgallagher26
03-02-2009, 06:53 PM
Ok I want to copy the first search results description and insert it into my pages meta tags

Picture of page (http://kywordpro.com/img/site.bmp) or Actual Page (http://kywordpro.com/txt/1/10/peapod+car.html)

Since this changes every time someone searches a keyword I need it to pull the current description.

This is what I currently have in the description tag which puts whatever keyword is search in the decription tag.


<meta name="description" content="<?php echo isset($q) ? ('' . ucwords($q)) : TITLE; ?> ">

I am a little lost on how to start this.

Any help would be appreciated

Tim..

Nile
03-02-2009, 10:39 PM
Mind telling us what the $q variable holds? We would also have to see php code(are you using mod-rewrite?).

Thanks!
Nile

tgallagher26
03-04-2009, 01:55 PM
$q is the query. The site is a meta search engine.

I am not sure what you mean by Mod-Rewrite.

Tim..