Ahora está esto así:
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 conexion ('.$db->connect_errno.')' .$db->connect_errno);
}$consulta = $db->query("SELECT 'id,cliente,prenda,precio' FROM pedidos");
?>
<html>
<head>
<title>Pedidos</title>
</head>
<body>
<table align="center">
<thead>
<th>Cliente</th>
<th>Prenda</th>
<th>Precio</th>
</thead>
<?php
while ($row=$consulta->fetch_array())
{
echo '<tr><td>'.$row["cliente"].'</td>';
echo '<td>'.$row["prenda"].'</td>';
echo '<td>'.$row["precio"].'</td></tr>';
}
?>
</table>
</body>
</html>