Results 1 to 3 of 3

Thread: Copying text from my site

  1. #1
    Join Date
    Feb 2009
    Posts
    62
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default Copying text from my site

    Ok I want to copy the first search results description and insert it into my pages meta tags

    Picture of page or Actual Page

    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.

    Code:
    <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..
    Last edited by tgallagher26; 03-02-2009 at 07:06 PM.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Mind telling us what the $q variable holds? We would also have to see php code(are you using mod-rewrite?).

    Thanks!
    Nile
    Jeremy | jfein.net

  3. #3
    Join Date
    Feb 2009
    Posts
    62
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    $q is the query. The site is a meta search engine.

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

    Tim..

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •