bueno he hecho esto para que me carge en una tabla la matriz de datos de estas dos tablas :
estudiantes
notas,.
pero el problemita radica que a guardar los datos no se que nota corresponde al estudiante... si alguien em puede colaborar con esto... o si sabe una mejor forma de hacerlo,.. se lo agradezeria....
aqui esta lo que llevo de codigo... claro es una idea.. pero nose si sea eficiente...
Código PHP:
<?php
echo"<table border=1 width=100% id=table1>"
."<tr >"
."<th width=200>"
."<p align=center class='Texto'>persona</p></th>";
$sqll = "SELECT * FROM estudiante JOIN notas "
."WHERE (estudinate.id_est = nota.id_nota) ";
$cursorl = mysql_query( $sqll, $conexion );
while( $fila = mysql_fetch_array( $cursorl ) ){
$j++;
$nota[$j] = $fila['id_nota'];
echo"<th width=45><p >nota - $j</p></th>";
}
echo"</tr>";
$sqle = "SELECT * FROM estudiante ";
$cursore = mysql_query( $sqle, $conexion );
while( $fila = mysql_fetch_array( $cursore ) ){
$id = $fila ['id_est'];
$nombre = $fila ['nomb'];
echo"<tr>"
."<th width=200><p >$nombre</p></th>";
for ($i=1; $i <= $j; $i++ ){
echo"<th width=45><input type=text name='$ntaest' size=3 maxlength=4 ></th>";
}
echo"</tr>";
}
echo"</table>";
?>