En una suma siempre me calcula cogiendo el primer registro e ignorando los demas. Este es el codigo
Código PHP:
  
 <table>
        <tr>
          <td><?php do { ?>
           <?php 
    $botellas=($row_stock['cantidad']/$row_stock['stud']);
    ?>
              <table width="550" border="0">
                    <tr>
                      <td width="90"><?php echo $row_stock['cantidad']; ?></td>
                      <td width="73"><?php echo $row_stock['forma']; ?></td>
                      <td width="200"><?php echo $row_stock['articulo']; ?></td>
                      <td width="90"><form id="form1" name="form1" method="post" action="">
                        <input name="unidades" type="hidden" id="unidades" value="<?php echo $row_stock['stud']; ?>" />
<input name="eso" type="text" id="eso" value="<?php echo round( $botellas, 2); ?>" />
                      </form></td>
                      <td width="75"> </td>
                  </tr>
                            </table>
              <?php } while ($row_stock = mysql_fetch_assoc($stock)); ?></td>
        </tr>
      </table>   Alguien me puede echar una mano?
Gracias
 
 

