Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Olá pessoal estou com uma dificuldade que com certeza irá ajudar muita gente. Bom tenho um boletim online onde quero colocar para o professor lançar as notas dos alunos. Criei a seguinte tabela.
<form id="form1" name="form1" method="post" action="">
<p>
<?php
include("includes/config.php");
$sql = mysql_query("select * from `$tabela4` N, `$tabela1` A WHERE N.coddisc='FILOS' and N.codigodaturma='EF9.1A.A' and N.matricula=A.matricula ORDER BY A.aluno");
while($linha = mysql_fetch_array($sql)){
$id = $linha["id"];
$matricula = $linha["matricula"];
$avaliacao1 = $linha["avaliacao1"];
$nome = $linha["aluno"];
// Tratamento para exibir acentos
$nome = htmlentities($nome, HTML_ENTITIES);
$responfinanc = htmlentities($responfinanc, HTML_ENTITIES);
$pai = htmlentities($pai, HTML_ENTITIES);
$mae = htmlentities($mae, HTML_ENTITIES);
$seriedados = htmlentities($seriedados, HTML_ENTITIES);
$codigodaturmadados = htmlentities($codigodaturmadados, HTML_ENTITIES);
$turnodados = htmlentities($turnodados, HTML_ENTITIES);
$situacaodoalunodados = htmlentities($situacaodoalunodados, HTML_ENTITIES);
$resultadofinaldados = htmlentities($resultadofinaldados, HTML_ENTITIES);
echo '<table width="100%" border="0" cellspacing="0" cellpadding="5">';
echo '<tr>';
echo '<td width="450px">'.$nome.'</td>';
echo '<td><div align="left">';
echo '<input type="text" name="'.matricula.'" id="'.matricula.'" value="'.$avaliacao1.'" size="5" maxlength="4" />';
echo '</div></td>';
echo '</tr>';
echo '</table>';
echo '<label></label>';
}
?>
<br />
</p>
<p>
<label>
<input type="submit" name="button" id="button" value="Gravar" />
</label>
</p>
</form>
Mas não sei como gravar essas informações no banco de dados. Ajudem ae q ainda estou noob em php pra coisas avançadas.
Carregando comentários...