<?phpif (isset($user) && $user['mylink'] == null) { $db->query('UPDATE `user` SET `mylink`=? WHERE `id`=?i', ['id' . $user['id'], $user['id']]);}