Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

MySQL Query Error: Column count doesn't match value count at row 1

Avatar of Brainstormpc
Brainstormpc asked on
PHPMySQL Server
12 Comments1 Solution9933 ViewsLast Modified:
This querry in MySQL won't work, it causes the error  message

 Error: Column count doesn't match value count at row 1

INSERT INTO leads (id, first_name, last_name, email, phone, address, city, state, zip, question, date) VALUES ('NULL', 'Frank', 'Furter','me@me.com' '555-555-5555', '13 Cherry Tree Ln.', 'Grants Pass', 'OR', '97567', 'This is a test', '2010-07-05')

this is the query taken out of the php code it was in.
I don't see any disparity between the columns and the values.  the database is the following

table name: leads

fields:
id                  ( int , autoincrement, key
first_name    (varchar)
last_name     (varchar)
email             (varchar)
phone             (varchar)
address       (varchar)
city             (varchar)
state          (varchar)
zip             (varchar)
question    (mediumtext)