Columncountdoesn 'tmatchvaluecountatrow1 appears on the registration page.

Source: Internet
Author: User
The registration page displays Columncountdoesn & # x27; tmatchvaluecountatrow1session_start (); define (IN_TG, true); require & nbsp; includeglobal. php; require & nbsp; dirname (_ FILE __). the register deheader registration page displays Column count doesn't match value count at row 1
Session_start ();
Define ('in _ TG ', true );
Require 'include/global. php ';
// Require dirname (_ FILE _). '/include/header. php ';
Require 'include/register. inc. php ';

If (@ $ _ GET ['action'] = '2 '){

Check_code ($ _ POST ['yzm'], $ _ SESSION ['code']);
$ _ Clean = array ();
$ _ Clean ['uniqid'] = check_uniqid ($ _ POST ['uniqid'], $ _ SESSION ['uniqid']);
$ _ Clean ['active'] = active_uniqid ();
$ _ Clean ['username'] = check_username ($ _ POST ['username'], 2, 40 );
$ _ Clean ['password'] = check_password ($ _ POST ['password'], $ _ POST ['notpassword'], 6 );
$ _ Clean ['passt'] = check_question ($ _ POST ['passt'], 4, 20 );
$ _ Clean ['passsd'] = check_answer ($ _ POST ['passst'], $ _ POST ['passsd );
$ _ Clean ['sex'] = check_sex ($ _ POST ['sex']);
$ _ Clean ['email '] = check_mail ($ _ POST ['email'], 6, 40 );
$ _ Clean ['$ _ QQ'] = check_qq ($ _ POST ['QQ']);
$ _ Clean ['$ _ url'] = check_url ($ _ POST ['URL'], 40 );

@ Mysql_query ("insert into project. test1 (
Tg_id,
Tg_uniqid,
Tg_active,
Tg_usename,
Tg_password,
Tg_passt,
Tg_passd,
Tg_email,
Tg_qq,
Tg_url,
Tg_sex,
Tg_reg_time,
Tg_last_time,
Tg_last_ip
)
Values (
'{$ _ Clean ['uniqid']}',
'{$ _ Clean ['active']}',
'{$ _ Clean ['username']}',
'{$ _ Clean ['password']}',
'{$ _ Clean ['passt']}',
'{$ _ Clean ['passsd']}',
'{$ _ Clean ['email']} ',
'{$ _ Clean ['QQ']}',
'{$ _ Clean ['URL']}',
'{$ _ Clean ['sex']}'
'Now ()',
'Now ()',
'{$ _ SERVER ["REMOTE_ADDR"]}'
) ") Or die (mysql_error ());
Mysql_close ();
Location ('Congratulations, registration successful ', '1. php ');
} Else {$ _ SESSION ['uniqid'] = $ _ uniqid = sha1 (uniqid (rand (), true ));}

?>




Multi-user message system-registration

Define ('script', 'register ');
Require dirname (_ FILE _). '/include/tittle. php ';
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.