Ver Mensaje Individual
  #20 (permalink)  
Antiguo 25/11/2008, 13:38
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 16 años, 8 meses
Puntos: 2
Respuesta: Que falta para k funcione Where In

Lo modificado sale una pagina en blanco.

A ver te menciono k tengo un php vercarrito.php

Código php:
Ver original
  1. <!-- <form name="" method="post" action="agregacarrito2.php" id=">
  2.    <tr>
  3.       <td align="center"><?php echo $v['id'] ?></td>
  4.     <?php
  5.     $qry2=mysql_query("select medicamento,presentacion,concentracion,formaFarmaceutica,precio from catalogo where id='".$v['id']."'");
  6.     if($row2=mysql_fetch_assoc($qry2))
  7.     {
  8.     ?>
  9.       <td><?php echo $row2['medicamento'] ?></td>
  10.       <td align="center"><?php echo $row2['presentacion'] ?></td>
  11.       <td align="center"><?php echo $row2['concentracion'] ?></td>
  12.       <td align="center"><?php echo $row2['formaFarmaceutica'] ?></td>
  13.       <td align="right"><?php echo $row2['precio'] ?></td>
  14.       <td align="center">
  15.         <input type="text" name="cantidad[]" id="cantidad" value="<?php echo $v['cantidad'] ?>">
  16.         <input name="id[]" type="hidden" id="id" value="<?php echo $v['id'] ?>"></td>
  17.     <?php
  18.     }
  19.     ?>
  20.    </tr>
  21.   <?php }?>
  22. </table>
  23. <table width="80%" align="center" cellpadding="5" cellspacing="2" border="0">
  24.   <tr valign="middle">
  25.     <td align="center"><input type="submit" name="input_submit" value="Borrar"></td>
  26.     <td align="center"><input type="submit" name="input_submit" value="Actualizar"></td>
  27.   </tr>
  28. </table>
  29. </form>-->

y envia los $id y $cantidad al php agregacarrito2.php para generar el array carro($carro)

Espero esto sirva