Ver Mensaje Individual
  #9 (permalink)  
Antiguo 25/03/2015, 10:11
zipcs
 
Fecha de Ingreso: marzo-2015
Mensajes: 11
Antigüedad: 9 años, 2 meses
Puntos: 0
Respuesta: Enviar variable con phpmailer

Pero usando solo While me aparece en la lista solo un producto ..

Código:
    
<p><strong>Lista de Productos a Cotizar.</strong></p>
    <table width="100%" border="0">
  <tr>
    <td>Producto</td>
    <td>Unidades</td>
    <td>Acciones</td>
</tr>
 <?php while ($row_DatosCot = mysql_fetch_assoc($DatosCot)) { 
 ?>
  <tr> 
   <td><?php echo $body = ObtenerNombreProducto($row_DatosCot['idProducto']); ?></td>
    <td><?php echo $row_DatosCot['intCantidad']; ?>
    <?php $mail->Body = 'Producto: ' . $body . ' ' . 'Cantidad: ' . $row_DatosCot['intCantidad'];?>
      <form action="<?php echo $editFormAction; ?>" method="post" name="form2" id="form2">
        <table align="center">
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">Cantidad:</td>
            <td><input type="text" name="intCantidad" value="<?php echo htmlentities($row_DatosCot['intCantidad'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">&nbsp;</td>
            <td><input type="submit" value="Actualizar Cantidad" /></td>
          </tr>
        </table>
        <input type="hidden" name="MM_update" value="form2" />
        <input type="hidden" name="idProducto" value="<?php echo $row_DatosCot['idProducto']; ?>" />
      </form>
      <p>&nbsp;</p></td>
    <td><a href="pro_del.php?recordID=<?php echo $row_DatosCot['intContador']; ?>">Eliminar</a></td>
  </tr>      
<?php $mail->send();?>
  <?php } //while ($row_DatosCot = mysql_fetch_assoc($DatosCot));?>
  </table>
&nbsp;</p>
<p> 
  </p>

<form id="form1" name="form1" method="post" action= >
  <input type="submit" name="button" id="button" value="Solicitar Cotización" />
</form>
<p></p>
<?php
mysql_free_result($DatosCot);
?>