欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

mysql-点击注册报错:SQL报错

程序员文章站 2022-04-26 08:23:40
...
mysqlsql

mysql_query(
"INSERT INTO tg_user (
tg_uniqid,
tg_active,
tg_username,
tg_password,
tg_question,
tg_answer,
tg_sex,
tg_face,
tg_email,
tg_qq,
tg_url,
tg_reg_time,
tg_last_time,
tg_last_ip
)
VALUES (
'{$_clean['uniqid']}',
'{$_clean['active']}',
'{$_clean['username']}',
'{$_clean['password']}',
'{$_clean['question']}',
'{$_clean['answer']}',
'{$_clean['sex']}',
'{$_clean['face']}',
'{$_clean['email']},'
'{$_clean['qq']}',
'{$_clean['url']}',
NOW(),
NOW(),
'{$_SERVER['REMOTE_ADDR']}'

) "
) or die('SQL执行错误'.mysql_error());

点击注册,报错:SQL执行错误Column count doesn't match value count at row 1

mysql-点击注册报错:SQL报错

相关标签: mysql sql