if ($name) $upd = db::query("UPDATE `user` SET `name`='$name' WHERE id = '$user_id'");
if ($surname) $upd = db::query("UPDATE `user` SET `surname`='$surname' WHERE id = '$user_id'");
if ($age) $upd = db::query("UPDATE `user` SET `age`='$age' WHERE id = '$user_id'");
if ($img) $upd = db::query("UPDATE `user` SET `img`='$img' WHERE id = '$user_id'");
if ($code) $upd = db::query("UPDATE `user` SET `code`='$code' WHERE id = '$user_id'");