Extending query according to changes at address bar
Posted on 2005-05-08
Let say we have http://www.mydomain.com/product.php?cpu=133mhz at address bar and our query is select * from product_table where cpu=133mhz and link which shows cpu, ram, price. When user clicks to ram, address bar will change to http://www.mydomain.com/product.php?cpu=133mhz&ram=512mb and query will be select * from product_table where cpu=133mhz AND ram=512mb. So I will help user to select his item which is best for him. I would like to get logic of adding &ram=512 to the end of address bar and add AND ram=512 to the end of query. What would your suggestion be?