if ($email != $CURUSER["email"]) {
if (!validemail($email))
bark(_("Klaida! Panašu, kad klaidingai įvedei email adresą!"));
$r = do_mysql_query("SELECT id FROM users WHERE email=" . sqlesc($email)) or sqlerr();
if (mysql_num_rows($r) > 0)
bark(sprintf(_("Toks emailas adresas %s jau naudojamas!"), $email));
####
$date = date("Y-m-d");
$modcomment_email = "{$date} - E-mail pakeistas, pakeitė: {$CURUSER['username']}";
$modcomment_email = mysql_real_escape_string($modcomment_email);
do_mysql_query("UPDATE users SET modcomment = '$modcomment_email' where id = ".$CURUSER['id']) or sqlerr(__FILE__, __LINE__);
#####
$changedemail = 1;
}
此腳本執行行更新後,但舊數據刪除。如何更新行,但保留舊數據?php mysql用戶信息更新