Подскажыте что я не так, почему не работает?
$user_ref = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `user_id` = '$user[ref]'"));
$nik1 = ($user_ref['nik2']);
mysql_query("UPDATE `users` SET `nik1` = '".($user['nik1']+$nik1)."' WHERE `user_id` = '$user[user_id]' LIMIT 1");
И так делал
$user_ref = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `user_id` = '$user[ref]'"));
$nik1 = ($user_ref['nik2']);
mysql_query("INSERT INTO `users` WHERE `users_id` (`nik2`) VALUES ('".$nik1."')");
}