Amigos....El resultado intente colocarlo en tablas pero solo me sale 1 soal de todas la que deberian salir les dejo el cod
Código PHP:
<?php
session_start();
include('cxn.php');
$sql= mysql_query("SELECT m.nombre_materia, r.Nota FROM tbl_materias AS m, tbl_usuarios AS u, tbl_relacion AS r WHERE m.id_materia=r.id_materia AND u.id_usuario = r.id_usuario AND u.id_usuario ='".$_SESSION['id_usuario']."'") or die (mysql_error());
$resultado = $sql;
while ($row = mysql_fetch_array($sql))
{
$resultado = "<tr><td>".$row ['nombre_materia'] . "</td><td>".$row ['Nota'];
}
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Materias Estudiante</title>
</head>
<body>
Estudainte <?php print $_SESSION['nombre']; ?>
<table border="1">
<tr align="center" bgcolor="#CC00CC" bordercolor="#000000">
<td>Materia</td>
<td>Definitiva</td>
<?php
print $resultado
?>
</table>
</body>
</html>
Gracias.Saludos