Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/04/2006, 04:00
Avatar de pereztroff
pereztroff
 
Fecha de Ingreso: junio-2002
Ubicación: En la Internet.
Mensajes: 4.068
Antigüedad: 21 años, 10 meses
Puntos: 5
no me muestra los registros

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.


?>