implode basket products - PHP
<p>Im trying to list all added products from my session['cart'] and implode them, I just don't know how to list the implode, please help!</p>

<pre><code>      $list = '';
  foreach($_SESSION['cart'] AS $key =&gt; $qyt){
   $items[] = array('size_id' =&gt; $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

        FROM products_sizes s 
        INNER JOIN products p ON p.product_id = s.product_id
         WHERE s.id IN (". implode(",",  /* LIST SIZES_ID HERE */ ) .")
        ORDER BY s.id DESC
  ");
  while($row = $res-&gt;GetNext()){
</code></pre>
