Código PHP:
<?php
$link = mysql_connect("localhost", "root");
mysql_select_db("colegio", $link);
$result = mysql_query("SELECT id_alumno,nombre,ape_paterno,ape_materno,id_curso FROM alumnos ", $link);
if ($row = mysql_fetch_array($result)){
echo "<table border = '1'> \n";
//Mostramos los nombres de las tablas
echo "<tr> \n";
while ($field = mysql_fetch_field($result)){
echo "<td>$field->name</td> \n";
}
echo "</tr> \n";
do {
echo "<tr> \n";
echo "<td>".$row["id_alumno"]."</td> \n";
echo "<td>".$row["nombre"]."</td> \n";
echo "<td>".$row["ape_paterno"]."</td> \n";
echo "<td>".$row["ape_materno"]."</td> \n";
echo "<td>".$row["id_curso"]."</td> \n";
echo "</tr> \n";
} while ($row = mysql_fetch_array($result));
echo "</table> \n";
}
?>
pero los quiero cargar en este tabla
Código:
<form class="jotform-form" action="" method="post" name="form_21716096943661" id="21716096943661" accept-charset="utf-8"> <input type="hidden" name="formID" value="21716096943661" /> <div class="form-all"> <ul class="form-section"> <li class="form-line" id="id_1"> <label class="form-label-top" id="label_1" for="input_1"> Notas </label> <div id="cid_1" class="form-input-wide"> <table summary="" cellpadding="4" cellspacing="0" class="form-matrix-table"> <tr> <th style="border:none"> </th> <th class="form-matrix-column-headers" style="width:11.090909090909092%"> N1 </th> <th class="form-matrix-column-headers" style="width:11.090909090909092%"> N2 </th> <th class="form-matrix-column-headers" style="width:11.090909090909092%"> N3 </th> <th class="form-matrix-column-headers" style=""> N4 </th> <th class="form-matrix-column-headers" style="width:11.090909090909092%"> N5 </th> <th class="form-matrix-column-headers" style="width:11.090909090909092%"> N6 </th> <th class="form-matrix-column-headers" style="width:11.090909090909092%"> N7 </th> <th class="form-matrix-column-headers" style="width:11.090909090909092%"> N8 </th> <th class="form-matrix-column-headers" style="width:11.090909090909092%"> N9 </th> <th class="form-matrix-column-headers" style="width:11.090909090909092%"> N10 </th> <th class="form-matrix-column-headers" style="width:11.090909090909092%"> Prom </th> </tr> <li class="form-line" id="id_1"> <div id="cid_1" class="form-input-wide"> <table summary="" cellpadding="4" cellspacing="0" class="form-matrix-table"> <th align="left" class="form-matrix-row-headers" nowrap="nowrap"> Nombre </th> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> <td align="center" class="form-matrix-values"> <input class="form-textbox" type="text" size="2" name="q1_notas[0][]" /> </td> </tr> </table> </div> </li> <li class="form-line" id="id_2"> <div id="cid_2" class="form-input-wide"> <div style="margin-left:156px" class="form-buttons-wrapper"> <button id="input_2" type="submit" class="form-submit-button"> Submit </button> </div> </div> </li> <li style="display:none"> Should be Empty: <input type="text" name="website" value="" /> </li> </ul> </div> <input type="hidden" id="simple_spc" name="simple_spc" value="21716096943661" /> <script type="text/javascript"> document.getElementById("si" + "mple" + "_spc").value = "21716096943661-21716096943661"; </script> </form>
si coloque mal el código me lo dicen porfa...
eso si alguien puede ayudar se agradece de antemano