0 0 0
0 0 0
etc... n veces, o registros que tenga la Base de Datos
Cada tabla tiene un encabezado, una imagen, un dato, y otro dato (un titulo y 3 registros), les dejo el codigo para que le puedan dar una mirada:
Código :
<?
$count=0;
?>
<table width="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="24" bgcolor="#666666"><div align="center"><span class="style3">Ejemplo del Sello</span></div></td>
</tr>
<tr>
<td height="200"> <div align="center">
<?
include ("../backend/conf.inc.php");
$tabla = $_GET['tabla'];
$fase = $_GET['fase'];
$dependencia = $_GET['dependencia'];
$query = mysql_query("SELECT * FROM $tabla WHERE fase= '$fase'")or die ("Query invalido");
while ($registro = mysql_fetch_array($query)) {
$imagen_query = '../anexos/36/'.$dependencia.'/'.utf8_encode($registro['ejemplo']);
?>
<img src= <? echo'$imagen_query'?> width=250 height=200>
</div></td>
</tr>
<tr>
<td><span class="style1"> Responsable: <? echo utf8_encode($registro['nombre_responsable']) ?> </span></td>
</tr>
<tr>
<td><span class="style1"> Cargo: <? echo utf8_encode($registro['cargo_responsable']) ?> </span></td>
</tr></table>
<? $count++;
if($count==3){
$count = 0;
}
}
?>
Muchas gracias por su ayuda
