php - Dynamically Populated Dropdown List for quanitty part of the basket -


foreach ($_session ['basket'] $newprodid => $reququantity) {           echo"<tr>";      $sql="select prodname, prodprice, prodquantity product prodid =".$newprodid;     $runsql = mysql_query($sql) or die(mysql_error());      $arrayprod = mysql_fetch_array($runsql);      echo "<td>".$arrayprod['prodname']."</td>";      echo "<td>&pound".number_format($arrayprod['prodprice'],2)."</td>";      echo "<td>"for($i=1;$i<=thearrayprod['prodqua"</td>";      $subtotal = $reququantity * $arrayprod['prodprice'];     $total = $total + $subtotal;      echo "<td>&pound".number_format($subtotal,2)."</td>";        echo "<td>"; 

this basket page , quantity part of td column in basket want instead of quantity showing want dynamically populated drop down list using loop


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -