Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/12/2011, 08:04
Arkaitz
 
Fecha de Ingreso: agosto-2011
Ubicación: España
Mensajes: 445
Antigüedad: 12 años, 8 meses
Puntos: 89
Respuesta: Mostrar estado en una página

Código PHP:
Ver original
  1. <table id="box-table-a" width="475" border="1" style="text-align:center;">
  2.   <tr>  
  3.         <th scope="col">Titulo</th>
  4.         <th scope="col">Autor</th>
  5.         <th scope="col">Editorial</th>
  6.         <th scope="col">ISBN</th>
  7.         <th></th>
  8.         <th scope="col"><input type="checkbox" name="checkbox" onClick="seleccionar_todo(this);"/></th>
  9. </tr>
  10.  
  11. <?php
  12.      $sql = "SELECT * FROM libro";
  13.                  
  14.           if ( $rec = mysql_query($sql,$conectar) ) {
  15.              
  16.             while ( $fil = mysql_fetch_assoc($rec) ) {
  17.              
  18.  
  19.  ?>
  20.  
  21. <tr>  
  22.        <td><?php echo $fil['titulo'] ?></td>
  23.        <td><?php echo $fil['autor'] ?></td>
  24.        <td><?php echo $fil['editorial'] ?></td>
  25.        <td><?php echo $fil['ISBN'] ?></td>
  26.        <td><?php echo $dis ?></tb>
  27.        <td><input name="idLibro[]" type="checkbox" value="<?php echo $fil['libroID']; ?>" <?php $estado ?> /></td>
  28.  </tr>
  29.  
  30. <?php  
  31.     }
  32. }    
  33.            
  34. ?>
  35.                  
  36. </table>

No has dicho si te da algún error pero revisando un poco tu código veo que no usas ; desde la línea 22 hasta la 26:

Código PHP:
Ver original
  1. <td><?php echo $fil['titulo']; ?></td>
  2.        <td><?php echo $fil['autor']; ?></td>
  3.        <td><?php echo $fil['editorial']; ?></td>
  4.        <td><?php echo $fil['ISBN']; ?></td>
  5.        <td><?php echo $dis; ?></tb>