Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/07/2014, 07:36
Avatar de angel_xx_1990
angel_xx_1990
 
Fecha de Ingreso: junio-2013
Ubicación: Guadalajara
Mensajes: 236
Antigüedad: 10 años, 10 meses
Puntos: 0
Respuesta: Registros de base de datos en table

Tengo:

Código PHP:
Ver original
  1. <?php
  2. include("../conexion.php");
  3.  
  4.     $rst_form=mysql_query("SELECT * FROM guada");
  5.     $num_rows=mysql_num_rows($rst_form);
  6.  
  7.  
  8. ?>



y luego:


Código PHP:
Ver original
  1. <table width="90%" id="tabnovedades">
  2.   <tr>
  3.     <th height="40" colspan="3" scope="col" >GUADALAJARA<br>
  4.     &nbsp;
  5.     </th>
  6.     </tr>    
  7.     <?php foreach ($imagenes as $img_bloque):?>
  8.   <tr>
  9.     <td><img src="http://www.forosdelweb.com/f18/imgnovedades/ejemplo.jpg"  alt=""/></td>
  10.     <td><img src="http://www.forosdelweb.com/f18/imgnovedades/ejemplo.jpg"  alt=""/></td>
  11.     <td><img src="http://www.forosdelweb.com/f18/imgnovedades/ejemplo.jpg"  alt=""/></td>
  12.   </tr>
  13.   <?php endforeach; ?>
  14. </table>
  15.  </section>



Asi?????