mysql query procedural code example
Example: mysqli procedural UPDATE
if ($db->query("UPDATE contact SET lastname='Doe' WHERE id=2") === TRUE) {
echo "Record updated successfully";
} else {
echo "Error updating record";
}
if ($db->query("UPDATE contact SET lastname='Doe' WHERE id=2") === TRUE) {
echo "Record updated successfully";
} else {
echo "Error updating record";
}