Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/10/2012, 11:51
Avatar de maximendez88
maximendez88
 
Fecha de Ingreso: septiembre-2012
Ubicación: Montevideo
Mensajes: 131
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: cada dos valores de la lista poner un boton

me autorrespondo asi lo resolvi... gracias por la ayuda


Código PHP:
Ver original
  1. <?php
  2. include "config.php";
  3. $nombrecir=$_SESSION['namecirc'];
  4. $query = "SELECT city, arrival,departure FROM `sites` WHERE nombreCirc='".$nombrecir."'";
  5. $result = mysql_query($query);
  6. $numero = 0;
  7. ?>
  8. <style type="text/css">
  9.     .listado td{
  10.         width:25%;
  11.         font-family:verdana;
  12.     }
  13. </style>
  14. <table class="listado">
  15. <?php
  16. $row = mysql_fetch_array($result);
  17.  
  18. ?>
  19.     <tr>
  20.     <td>
  21.    
  22.  
  23.         <b><?php echo $row["city"]?></b><br/>
  24.         Arrival:<?php echo $row["arrival"]?><br/>
  25.         Departure:<?php echo $row["departure"]?><br/>
  26.    
  27.    
  28.    <?php
  29. while($row2 = mysql_fetch_array($result))
  30. {
  31. ?>
  32.     <tr>
  33.     <td>
  34.         <b><?php echo $row2["city"]?></b><br/>
  35.         Arrival:<?php echo $row2["arrival"]?><br/>
  36.         Departure:<?php echo $row2["departure"]?><br/>
  37.         <a title="TripMinded - Add Transport" id="transportelink" href="addtransport.php" class="ajax cboxElement">
  38.         <input type="button" value="Add Transport"  onclick="this.style.display='none'"  /></a>
  39.     </td>
  40.     </tr>
  41. <?php
  42.     $numero++;
  43. }
  44. ?>
  45.        
  46.  
  47.    
  48.    
  49.    
  50.    
  51.    
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.        
  59.        
  60.     </td>
  61.     </tr>
  62.  
  63. </table>
  64. <?php  
  65. ?>