Jump to content

How can I filter PDO queries with JS/jQuery?


Nickmadd

Recommended Posts

Hey guys, I want to be able to filter PDO and MySQL queries that are returned to my front end using JavaScript or a plus would be jQuery.

 

First I will explain what I am actually doing...

 

I am developing an ecommerce styled listing page, all of the data in my database is displayed into the front end and users can view vehicles that are in that table. I currently have all vehicles in a list using PDO just like this example:

 

http://vans.autotrader.co.uk/search?

 

As you can see the filtering module on the left of that example uses JavaScript to display the options available.

 

My question is how is the JS having an affect on what the PHP is returning from the database there must be some sort of connection between JS and PHP but I am struggling to understand how this is possible?

 

 

 

 

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.