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

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

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