Hey Guys (and girls),
I just started learning PHP and MySQL and I've used this site for so much help! Now, I finally came to a point where I needed to ask a question.
I'm creating a web application where I have a master table (ITEM_DETAILS) that contains EVERY item and all the necessary data associated with that item (item_id, item_price, category, cost, size, etc...). I have another table (SHOPPING_BASKET_TEMP) that stores the items that have been added to the shopping cart. This table contains the item_id, item_qty, category, price, etc...
What I need to do is... when the page opens, select ALL the items from ITEM_DETAILS for a certain category. Second, I need to look at SHOPPING_BASKET_TEMP and if the user has that item in their cart (based on their session_id, item_category and item_id), then I need to select the item_qty for that item, else, I need to return a item_qty of 0.
I've tried joins, unions, various selects and I've had absolutely NO luck. Can somebody PLEASE help to send me in the right direction?
Any help would be GREATLY appreciated!
~FETNU