I have a sql but one thing is not inserting and that is the 'name' field (username)
My SQL code:
$serverdb->query("INSERT INTO cms_users
(
name,lastvisit,online,ipaddress_last,newsletter,email_verified,
show_home,email_friendrequest,email_minimail,email,show_online)
VALUES
(
'".mysql_real_escape_string($row[1])."','".time()."','".time()."',
'".$_SERVER['REMOTE_ADDR']."','1','1','1','1','1','".mysql_real_escape_string($email)."','1')"
)
or die (mysql_error()
);
My website is not giving a error or something, its inserting this sql without a username. (btw, this is for a register page)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…