This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 5th, 2012  |  syntax: PHP  |  size: 0.86 KB  |  views: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. $tabacos1 = $tabacos->fetchAll();
  3. while ($item2 = $listado->fetch()) {
  4.     ?>
  5.        
  6.             <tr>      
  7.                 <td>Carril nÂș: <?php echo $item2['idCarrilTabaco'] ?></td>
  8.                
  9.                 <td>  
  10.                     <select name="descripcion" size ="1">
  11.                     <?php foreach ($tabacos1 as $tabacos2) {?>    
  12.                             <option value='<?php echo $tabacos2['idTabaco']?>'><?php echo $tabacos2['descripcion']?></option>
  13.                    <?php } ?>  
  14.                     </select>
  15.                    
  16.                    
  17.                 </td>
  18.                
  19.                
  20.                 <td><?php echo $item2['Capacidad'] ?></td>
  21.                 <td><input type = "text" name = "cantidad" size ="2" value="<?php echo $item2['Cantidad'] ?>"></td>
  22.  
  23.             </tr>
  24.  
  25.     <?php
  26. }
  27. ?>
clone this paste RAW Paste Data