Jump to content

Dropdownlist which queries database and searches images from folder.


aeonius

Recommended Posts

Hey guys, i'm new to this site and would need some help with coding. 

So i'm making a car part website which should has brand/model search. It's a dropdown search which will get the brand / model from database and should display all the parts for that exact model, from folder. 

Database structure which i have is id, master, name. ( Here's some pictures to clear out what i'm doing. http://imgur.com/a/7XwVd ) 

So the problem is that it does not get the images from folder named ex: *_audi_a3.jpg. 

And link to codes what have been written already.  

 

Parts.php: http://pastebin.com/q6vdypge 

Update.php: http://pastebin.com/DymhGQ17

Search_images.php: http://pastebin.com/LF5Q0i8f

Core.js: http://pastebin.com/bgc0y4TS

 

I don't know what's wrong with it sadly. One thing i noticed when i used firebug it gives error on category when searching error:true.

Hope you guys understand what i mean here, and also all help is appreciated.

And move this post if it's in wrong place. 

Thanks!

Edited by aeonius
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.