I'm putting together a shopping cart and have run into a problem. I have my cart table storing the users chosen shopping cart info, then multiple tables storing the details of each category of products. For example books, music , dvds etc. What I can't figure out is if it is possible to call multiple product records in my join statement. Can I loop through a list of my product categories somehow or how can I do this?
$sql= "select * from cart inner join $cat on cart.itemId = $cat.$catId where cart.cookieId = '" . GetCartId() . "' order by $cat.title asc";