I'm trying to list all the products related to all my sessions ['cart'] and implant them, not me Find out how in the Implode list, please help!
$ list = ''; Forex Currency ($ _ session ['carriage'] AS $ key => $ qyt) {$ item [] = array ('size_id' => $ qyt ['size']); } $ Res = $ db- & gt; Execute ("SELECT s.name, p.item_num, p.name AS product_name, p.discount, s.price AS product_price, s.units product_size products from INNER P on P Product_id = s.product_id where s.id IN ("Implode (", ", / * list SIZES_ID HERE * /).") "Order by SDID DESC"); While ($ line = $ res-> GetNext ()) {
given For example, two simple changes will be sufficient:
foreach ($ _ session ['cart'] AS $ key => $ qyt) {$ items [] = $ qyt ['size' ]; } $ Res = $ db- & gt; Execute ("SELECT s.name, p.item_num, p.name AS product_name, p.discount, s.price AS product_price, s.units Product_Signs INNER products from P on P product_id = s.product_id where SI D. In (". Feroda (", ", $ item.") "Order by SID DESC"); While ($ line = $ res-> GetNext ()) {
No comments:
Post a Comment