Ver Mensaje Individual
  #8 (permalink)  
Antiguo 14/12/2011, 10:31
martingb
 
Fecha de Ingreso: julio-2007
Mensajes: 15
Antigüedad: 16 años, 9 meses
Puntos: 0
Respuesta: Mostrar estado en una página

No hay caso,

me sigue mostrando esto en el source:

<tr>
<td>Adobe Flash CS5</td>
<td>Freddy Camargo</td>
<td>Fox Andina</td>
<td>123456</td>
<td><img width="32" height="32" src="img/1"></td>
<td><input name="idLibro[]" type="checkbox" value="12" /></td>
</tr>
<tr>
<td>PHP 6</td>
<td>Weiro Meier</td>
<td>Fox Andina</td>
<td>312432</td>
<td><img width="32" height="32" src="img/1"></td>
<td><input name="idLibro[]" type="checkbox" value="13" /></td>


Hay algo que esta mal cuando se muestra en la tabla

<div id="lib">
<h4>Libros</h4>
<form id="form" method="post" action="libros.php">

<table id="box-table-a" width="475" border="1" style="text-align:center;">
<tr>
<th scope="col">Titulo</th>
<th scope="col">Autor</th>
<th scope="col">Editorial</th>
<th scope="col">ISBN</th>
<th></th>
<th scope="col"><input type="checkbox" name="checkbox" onClick="seleccionar_todo(this);"/></th>
</tr>
Código PHP:
<?php
                $sql 
"SELECT * FROM libro";
                
                if ( 
$rec mysql_query($sql,$conectar) ) {
            
                    while ( 
$fil mysql_fetch_assoc($rec) ) {
                  
            
?>
<tr>
Código PHP:
<td><?php echo $fil['titulo']; ?></td>
<td><?php echo $fil['autor']; ?></td>
<td><?php echo $fil['editorial']; ?></td>
<td><?php echo $fil['ISBN']; ?></td>
<td><?php echo '<img width="32" height="32" src="img/'.print_r($row).'">' ?></td>
<td><input name="idLibro[]" type="checkbox" value="<?php echo $fil['libroID']; ?><?php $estado ?> /></td>
                  </tr>
            <?php 
                
}
            }    
          
            
?>
</table>