Cita:
Iniciado por diegodelpiero
wow amigo como hiciste eso, es justo lo que necesitaría, y lo de la otra tabla si la tenia creada, para reportar la nota final.
Lo hice con los códigos que has ido colocando y las modificaciones que te he indicado:
Código PHP:
Ver original$i = 0;
{
$dbpregunta = $rowEmp['evaluacionPregunta'];
$dbR1=$rowEmp['evaluacionR1'];
$dbR2=$rowEmp['evaluacionR2'];
$dbR3=$rowEmp['evaluacionR3'];
echo "<tr>";
echo "<td colspan='3'>Pregunta: ".$dbpregunta."</td>";
echo "</tr>";
echo "<tr>";
echo "<td width='38'>Opcion</td>";
echo "<td width='486'>Respuesta</td>";
echo "<td width='69'>Correcta</td>";
echo "</tr>";
echo "<tr>";
echo "<td>a</td>";
echo "<td>".$dbR1."</td>";
echo "<td><input name='respuesta[".$i."]' type='radio' value='1'></td>";
echo "</tr>";
echo "<tr>";
echo "<td>b</td>";
echo "<td>".$dbR2."</td>";
echo "<td><input name='respuesta[".$i."]' type='radio' value='2'></td>";
echo "</tr>";
echo "<tr>";
echo "<td>c</td>";
echo "<td>".$dbR3."</td>";
echo "<td><input name='respuesta[".$i."]' type='radio' value='3'></td>";
echo "</tr>";
$i += 1;
}
Tuve que modificar algunas cosas porque el orden con el que haces el código es un poco "desordenado"
![apachar ojo](http://static.forosdelweb.com/fdwtheme/images/smilies/wink.png)
y no me gusta estar abriendo y cerrando código php para hacer código html por lo cual lo hago todo desde php. Ahí te dejo el código del while para que veas que sí se puede cambiar el value y el name dentro del ciclo.