mysql search/random retrieve

Discussion in 'Programming' started by dawilster, Sep 28, 2008.

  1. #1
    I run a search engine and i wish to manipulate the results above is the code i use to display the results through yahoo api, but what i want it to do is display a single result that is relevant to the search query.

    the search query is distinguished by this:
    <? echo $_GET['search'];?> 
    Code (markup):
    What i want it to do is search my table for anything relevent.
    the columns with this table are
    link
    description
    Code (markup):
    And i wish to post the results that are relevant, but if the search comes back negative i want it to display random results.

    Is this possible if anybody could please make this up for me i would greatly appreciate it, thanks
     
    dawilster, Sep 28, 2008 IP