Jump to content

Column count doesn't match....???


DarthViper3k

Recommended Posts

I created my registration page and I was tryin to test it to see if it works

well

 

when I click on submit I get this...

 

Column count doesn\'t match value count at row 1

 

what exactly does that mean?

 

don\'t try to solve the problem for me

if I know what that means I can probably find the problem

Link to comment
Share on other sites

The error looks like you\'re trying something like this:

INSERT INTO tbl (name,url) VALUES (\'$name\',\'$url\',\'$other_var\',\'$possible_other_var\')

..where you say you\'re going to insert into 2 columns but give more than 2 values.

 

Hope this helps.

Link to comment
Share on other sites

The error looks like you\'re trying something like this:

INSERT INTO tbl (name,url) VALUES (\'$name\',\'$url\',\'$other_var\',\'$possible_other_var\')

..where you say you\'re going to insert into 2 columns but give more than 2 values.

 

Hope this helps.

 

yea I know

but my problem is

 

I\'m not inserting more than what I have

 

SQL query

[php:1:c5e8d6fe77]$sql = mysql_query(\"INSERT INTO users (username, password, email, info, quote, aimsn, icq, msn, sig, signup_date)
VALUES(\'$username\', \'$db_password\', \'$htminfo\', \'$quote\', \'$aimsn\', \'$icq\', \'$msn\', \'$htmsig\', now())\")
or die(mysql_error());[/php:1:c5e8d6fe77]

my database

email 

username 

PASSWORD

info 

quote 

aimsn 

icq 

msn 

sig

user_level

signup_date 

last_login

activated

 

 

lol

I just noticed it

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.