php code to edit mysqli database by post method code example
Example 1: mysqli procedural UPDATE
if ($db->query("UPDATE contact SET lastname='Doe' WHERE id=2") === TRUE) {
echo "Record updated successfully";
} else {
echo "Error updating record";
}
Example 2: live update mysql data in php
$(document).ready(function(){
loadstation();
});
function loadstation(){
$("#station_data").load("station.php");
setTimeout(loadstation, 2000);
}