no se que falla en el siguiente script que se supone mostrara todos los registros por filas en una tabla, help please.
Código PHP:
<?php
include("conexion2.php");
$result = mysql_query("SELECT * FROM precios ORDER BY id",$db);
echo "<table align=center border=1>";
echo "<tr><th>Curso</th><th>Descripcion</th><th>Horas semanales</th><th>Matricula</th><th>Mensualidad</th><th>Total Curso</th></tr>";
// Así escribimos la cabecera de la tabla
while ($row = mysql_fetch_array($result))
{
echo "<tr><td>{$row[‘curso’]}</td>"; // Comenzamos una fila (<tr>)
echo "<td>{$row[‘descripcion’]}</td>";
echo "<td>{$row[‘horas’]}</td>";
echo "<td>{$row[‘matricula’]}</td>";
echo "<td>{$row[‘mensualidad’]}</td>";
echo "<td>{$row[‘total’]}</td></tr>"; // Acabamos una fila (</tr>)
}
echo "</table>"; // Fin de la tabla.
?>