Ver Mensaje Individual
  #7 (permalink)  
Antiguo 17/07/2013, 22:51
ruben_chirinos_1985
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Mostrar varios carnet estudiantil en hoja

aqui esta el codigo completo

Código PHP:
Ver original
  1. <?php
  2. include('conexion.php');
  3. conectarse();
  4. ///tu base de datos
  5.  
  6. $query_alumnos = "SELECT * FROM estudiantes WHERE grado = '4TO' AND seccion = 'A' and status = '1'";
  7. $alumnos = mysql_query($query_alumnos) or die(mysql_error());
  8. $row_alumnos = mysql_fetch_assoc($alumnos);
  9. $totalRows_alumnos = mysql_num_rows($alumnos);
  10.  
  11. ?>
  12. <style type="text/css">
  13. <!--
  14. .Estilo103 {font-family: Georgia, "Times New Roman", Times, serif;
  15.     font-size: 8px;
  16.     font-weight: bold;
  17.     color: #000000;
  18. }
  19. .Estilo112 {font-size: 8px; font-weight: bold; }
  20. -->
  21. </style>
  22. <?php
  23.   ///el ciclo hasta que terminen los registros encontrados en la consulta
  24.    do { ?>
  25. <table width="332" height="178" border="1" align="left" cellspacing="0">
  26.   <tr>
  27.     <td><table width="332" height="178" align="left" cellspacing="0">
  28.       <tbody>
  29.         <tr>
  30.           <td colspan="2" style="text-align: center"><img src="logo.JPG" width="294" height="69" /></td>
  31.         </tr>
  32.         <tr>
  33.           <td width="226" style="text-align: center"><div align="left"><span class="Estilo103">APELLIDOS: <?php echo $row_alumnos['ape_est']; ?> <br />
  34.                     <br />
  35.             NOMBRES: &nbsp;<?php echo $row_alumnos['nom_est']; ?>&nbsp;</span><span class="Estilo103"><br />
  36.               <br />
  37.               C.I: <?php echo $row_alumnos['nac_est']; ?>-&nbsp;<?php echo $row_alumnos['ced_est']; ?></span><span class="Estilo103"><br />
  38.                 <br />
  39.             GRADO: <?php echo $row_alumnos['grado']; ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SECCI&Oacute;N: <?php echo $row_alumnos['seccion']; ?> </span></div></td>
  40.           <td width="90" style="text-align: center"><div align="center">
  41.               <?php
  42.     echo "<img src='http://2.bp.blogspot.com/-9yZKsNEn7tM/TWQRQ6mgHzI/AAAAAAAAC0s/V1O4nF1MG8M/s400/mariofb.jpg' border='1' width='90' height='110'>";
  43. ?>
  44.           </div></td>
  45.         </tr>
  46.       </tbody>
  47.     </table></td>
  48.   </tr>
  49. </table>
  50. <p>&nbsp;</p>
  51. <?php } while ($row_alumnos = mysql_fetch_assoc($alumnos)); ?>
  52. <?php
  53. ?>

espero me puedan echar la mano