Code-Samples/php/Php-update2.php Using UPDATE clause in MySQLi connect_error) { die("Connection not established: " . $connection->connect_error); } $query = "Use Hospital;"; $connection->query($query); // Implementing UPDATE query $query = "UPDATE Patient ". "SET patient_fname = 'Elizabeth' ". "WHERE patient_age < 30"; if ($connection->query($query) === TRUE) { echo "Record Updated successfuly."; } else { echo "Unable to update record " . $connection->error; } $connection->close(); ?>