Results 1 to 2 of 2
  1. #1
    More Cheesier Than Ever Cheesehead's Avatar
    Join Date
    January 18th, 2005
    Location
    Land of The NFL Champs!
    Posts
    2,942
    Want To Include Links in Search Results
    I have a search script up and running. I would, however like to create a link within each result. So far, all attempts have been unsuccessful. I am trying to include html <a and </a> tags in the results but is not working. This is what I have so far without the tags:

    PHP Code:
    //Display the results
    while($result mysql_fetch_array$data ))
    {

    echo 
    $result['url'];
    echo 
    $result['product'];
    echo 
    "&nbsp;&nbsp;&nbsp;&nbsp;";
    echo 
    "Price: $";
    echo 
    $result['price'];
    echo 
    "<br>";
    echo 
    "<br>";

    Thanks for any help!
    This World is Not My Home
    We're gonna go inside, we're gonna go outside, inside and outside. . . And then we're gonna go go go and we're not gonna stop til we get across that goalline! Quotes from the movie Rudy, 1993

  2. #2
    More Cheesier Than Ever Cheesehead's Avatar
    Join Date
    January 18th, 2005
    Location
    Land of The NFL Champs!
    Posts
    2,942
    Question Answered
    I got some help on another forum. Here is the solution:

    PHP Code:
    while($result = mysql_fetch_array( $data ))
    {
    ?>
    <a href="<?php print($result['url']); ?>"><?php print($result['product']); ?></a>&nbsp;&nbsp;&nbsp;&nbsp;
    Price: $<?php print($result['price']); ?><br />
    <br />
    <?php
    }
    This World is Not My Home
    We're gonna go inside, we're gonna go outside, inside and outside. . . And then we're gonna go go go and we're not gonna stop til we get across that goalline! Quotes from the movie Rudy, 1993

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Affliate links in organic search results
    By affiliate marketer in forum Introduce Yourself
    Replies: 8
    Last Post: September 16th, 2014, 01:52 PM
  2. Custom image links to search results for EPN?
    By lukeywn in forum eBay Partner Network
    Replies: 5
    Last Post: August 15th, 2014, 11:22 AM
  3. Google showing their own product search in 'natural search' results?
    By simcat in forum Search Engine Optimization
    Replies: 6
    Last Post: May 15th, 2007, 04:25 PM
  4. My Aff links in search results ???
    By Rexanne in forum ShareASale - SAS
    Replies: 36
    Last Post: January 8th, 2007, 01:12 PM

Posting Permissions

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