//You should already have a form with the method of GET setup, to execute statement
if(isset($_GET['buyout']) && $user_class->points > floor($user_class->hospital / 60)){
//Time to execute the statement
$query = "UPDATE `grpgusers` SET `hospital` = 0, `points` = ".mysql_real_escape_string(($user_class->points - floor($user_class->hospital / 60)))." WHERE `id` = ".$user_class->id;
mysql_query($query) or die(mysql_error());
//End of query
echo Message("what ever you want here!");
}