File "libros.php"
Full path: /var/www/html/respaldoR/libros.php
File size: 1.22 KiB (1247 bytes)
MIME-type: text/html
Charset: utf-8
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Libros</title>
</head>
<body>
<style>
img{
height: 200px;
}
</style>
<?php
require "conf.php";
require "inc.php";
mysqli_query($con,"SET NAMES 'utf8'");
?>
<table class="table table-stripped table-hover table-resposive">
<tr>
<th>ISBN</th>
<th>Título</th>
<th>Autor</th>
<th>Editora</th>
<th>Categoría</th>
<th>Descripción</th>
<th>Imagen</th>
</tr>
<?php
$sql="select * from libro";
$result=mysqli_query($con,$sql);
while($row = mysqli_fetch_row($result)){
echo "<tr><td>".$row[0]."</td>".
"<td>".$row[1]."</td>".
"<td>".$row[2]."</td>".
"<td>".$row[3]."</td>".
"<td>".$row[4]."</td>".
"<td>".$row[5]."</td>".
"<td><img src='libros/".$row[0].".jpg'></td></tr>";
}
?>
</table>
</body>
</html>