Check out example codes for "mysqli procedural UPDATE". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com