Jump to content

Unexperience need help with code, Please Help !


vanvoquan

Recommended Posts

I have spent 3 weeks to search and put the code together but there is no hope. I'm using Oscommerce script and I want to write the search function like this page Search by Vehicle. This is how my categories and subcategories, sub-subcategories look like:

Categories Subcategories Sub-subcategories Subsubcategories

    Honda           

          |----> 2005

                    |----------> Accord

                                            |-------------->Bumper

And my database as follow:

table categories

categories_id  parent_id

-------------  ----------

      56           0

      57           56

      59           57

      60           59

Table categories_description

categories_id  categories_name

-------------  ---------------

56 Honda

57 2005

59 Accord

60 Bumper

I want to write a script that have the search function like the website above. If anyone out there experience with this stuff please help me. I will thank you million times  :)

Vanvoquan   

I'd set up 3 dropdowns Make, Year, Model

 

Using AJAX, when an ID is selected in one, populate the next with its immediate sublevels.

 

When the final one is selected, populate a main page area with parts links.

 

Sample in my sig.

Hi Barand, Thanks million times for helping me with topic. I follow your instructions, study the BaaSelect thing and then write the code for the whole day but it didn't work. I'm so disappionted. Can you please please please help me write this little code. Thanks so much.

Vanvoquan

Thanks for reply Barand. Now I got it but I still have a small problem. When I chose the model from the second dropdown I want it take me to my index.php. I noticed that when I click categories and then subcategories through my site menu, I got the URL like this : http://localhost/test/index.php?cPath=56_57&osCsid=9d1a062764c50509a73c7d6dd9d56806

56 is my categories_id and 57 is my subcategories_id. They are connect together by an underline.

Is there anyway we can make the form action to something like this

<form action="index.php?cPath='$categories_id' ."_". '$subcategories_id'">

 

Thanks you so much for helping me out

vanvoquan

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.