Código PHP:
Ver original<?php
$usuario = "root";
$pass = "";
$host = "localhost";
$base = "AppSastre";
$db = new mysqli($host, $usuario, $pass, $base);
if($db->connect_error) {
die('Error de conexión ('.$db->connect_errno.')' .$db->connect_errno);
}$consulta = $db->query("SELECT * FROM pedidos");
?>
<html>
<head>
<title>Pedidos</title>
</head>
<body>
<table align="center" border="2" style="border-collapse:collapse;">
<tr>
<th>Cliente</th>
<th>Prenda</th>
<th>Precio</th>
</tr>
<?php
header('Content-Type: text/html; charset=UTF-8'); while ($row=$consulta->fetch_array())
{
echo '<tr><td align="center">'.$row['cliente'].'</td>';
echo '<td align="center">'.$row['prenda'].'</td>';
echo '<td align="center">'.$row['precio'].' €.</td></tr>';
echo '<td align="center"><a href'
}
?>
</table>
</body>
</html>