How do I give an update on more than one record, for example it appears in the notes.php page the following information:
Thisinformationisfromabank,soeachstudentisidsdifferent.MyproblemiswhenIclickthesavebutton,becausewhenIclickititonlysavesthelastitem.WhatcanIdointhiscase?
Usedcode
<formmethod="GET" action="notas.php">
<input type='text' placeholder='Nota' name='nota' id='nota' value=" .$linha['nota_valori'] . ">
<button type="submit">Salvar</button>
</form>
No notes.php has:
$id = $_POST['id'];
$nota = $_POST['nota'];
$sql="UPDATE 'nota' SET nota_valori='$nota' WHERE nota_id=$id";
$executa= mysql_query($sql,$con) or die(mysql_error());
echo "Registro salvo com sucesso";