aqui esta el codigo completo
Código PHP:
Ver original<?php
include('conexion.php');
conectarse();
///tu base de datos
$query_alumnos = "SELECT * FROM estudiantes WHERE grado = '4TO' AND seccion = 'A' and status = '1'";
?>
<style type="text/css">
<!--
.Estilo103 {font-family: Georgia, "Times New Roman", Times, serif;
font-size: 8px;
font-weight: bold;
color: #000000;
}
.Estilo112 {font-size: 8px; font-weight: bold; }
-->
</style>
<?php
///el ciclo hasta que terminen los registros encontrados en la consulta
do { ?>
<table width="332" height="178" border="1" align="left" cellspacing="0">
<tr>
<td><table width="332" height="178" align="left" cellspacing="0">
<tbody>
<tr>
<td colspan="2" style="text-align: center"><img src="logo.JPG" width="294" height="69" /></td>
</tr>
<tr>
<td width="226" style="text-align: center"><div align="left"><span class="Estilo103">APELLIDOS: <?php echo $row_alumnos['ape_est']; ?> <br />
<br />
NOMBRES: <?php echo $row_alumnos['nom_est']; ?> </span><span class="Estilo103"><br />
<br />
C.I: <?php echo $row_alumnos['nac_est']; ?>- <?php echo $row_alumnos['ced_est']; ?></span><span class="Estilo103"><br />
<br />
GRADO: <?php echo $row_alumnos['grado']; ?> SECCIÓN: <?php echo $row_alumnos['seccion']; ?> </span></div></td>
<td width="90" style="text-align: center"><div align="center">
<?php
echo "<img src='http://2.bp.blogspot.com/-9yZKsNEn7tM/TWQRQ6mgHzI/AAAAAAAAC0s/V1O4nF1MG8M/s400/mariofb.jpg' border='1' width='90' height='110'>";
?>
</div></td>
</tr>
</tbody>
</table></td>
</tr>
</table>
<p> </p>
<?php
?>
espero me puedan echar la mano