1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need some help with a script

Discussion in 'Black Hat SEO' started by Nosence, May 30, 2011.

  1. Nosence

    Nosence Senior Member

    Joined:
    Dec 28, 2010
    Messages:
    925
    Likes Received:
    42
    Hello,

    I am looking to be able to have a searchable function on my site, that allows for search by a zip code and another factor like day of the week.

    I dont know really where to begin with this idea, and I really have not been able to find anyone who could help me out.

    The site is on wordpress

    any help would be greatly appreciated

    Thanks
     
  2. RedLable

    RedLable Regular Member

    Joined:
    Feb 16, 2011
    Messages:
    244
    Likes Received:
    32
    Have you looked at using a google search input text box on your site? Or maybe there is a wordpress plugin that will do what you are looking for.
     
  3. nixflorence

    nixflorence Newbie

    Joined:
    May 27, 2011
    Messages:
    22
    Likes Received:
    0
    Location:
    US
    I will definitely use google search input text boxon my sites. Lets see what happen.
     
  4. takita

    takita Newbie

    Joined:
    Jun 20, 2009
    Messages:
    28
    Likes Received:
    70
    Does your site use php/mysql database?

    Have an html form, post the search query, then have something like this on the results page.

    $result = mysql_query("SELECT * FROM table WHERE zipcode LIKE '%$zipcode%' AND other='$theother' LIMIT 50")
    or die(mysql_error());
    while($row = mysql_fetch_array( $result )) {
    $thename = $row['name'];
    $theid = $row['id'];
    echo "$thename - $theid<br>";
    }