Código PHP:
Ver original<?php
require 'conexion.php';
$camposACargar = 'id, cliente, prenda, precio';
$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>
<?
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>
Ahí va todo el código