SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help creating a search function

    Hey Guys,

    Im new here and have little experience with coding, I can do some basic html and pretty much forget all the css that I learned. I have an auto parts website, <snip/>, and am trying to get a better search feature for our website. Right now you just click the chassis code for your car and then select the category and then go part to part and look in the description to see if it fits your year and model of the car.

    So im looking for a search feature similar to the one on autopartswarehouse.com, where you can select your make, model and year and then it takes you to the categories for it and only shows parts that will fit that vehicle. So how would i be able to code a search feature like this? The only way to find what cars each part fits is to look in our description, so the code would have to somehow sift through the description to pick up what vehicles the part fits. Any idea on how I could make this happen? Would i possible be able to use the code the above mentioned site uses and then just adjust it a little bit for my site?

    Thanks for the help!
    Last edited by Mittineague; Dec 28, 2013 at 17:31. Reason: removing unnecessary links

  2. #2
    Barefoot on the Moon! silver trophy
    Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,516
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    This will require a server-side language and database queries, such as PHP and MySQL. It cannot be accomplished using plain HTML.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,448
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    I suppose one way might be to piggy-back on Google. https://developers.google.com/custom...l/introduction
    Not as nice perhaps, but it should work.

    For example, you could make a "widget" of sorts that uses
    select-1-opt select-2-opt select-3-opt site:mysite.com


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
  •