2
I have the need to when load all the content defined in the database query to each while and fill in the fields and give Submit, it record in the database and reload only that loop bringing me the filled database data again. So when I’m posting information and recording in the bank, it updates me which ones are filled and in the future when I load the page the other day I’ll know which ones are filled too.
Code example:
while (odbc_fetch_row($result)) {
$sqlConfirma = "SELECT inf_km, km FROM dba.km
WHERE dba.km.id= ".$id."";
echo "<tr>";
echo "<form name='InsertBanco' action='executar.php' target='_blank' method='post'>
<td><input type='text' name='km_op' value='".odbc_result($sqlConfirma, "inf_km")."'></td>
<td><input type='text' name='km' value='".odbc_result($sqlConfirma, "km")."'></td>
<td><input type='submit' name='InsertBanco' value='Inserir'></td>
</form>
}
echo "</tr>"
This is only one example of the code, it is not itself, since I use many other fields. The solution could be Javascript and Jquery as well.
Explain the need for better interaction, because, in addition to having problems with large data, the question was very comprehensive.
– William Aparecido Brandino