/    Sign up×
Community /Pin to ProfileBookmark

Error: Column count doesn’t match value count at row 1 – I cannot find the problem.

I have a large survey that submits the fields into a MySQL database.

The survey form code is here
[URL=”http://michaeljbaran.com/surveyCode.html”]http://michaeljbaran.com/surveyCode.html[/URL]

and my save-in-database18.php file looks like this – [URL=”http://michaeljbaran.com/myPHPCode.html”]http://michaeljbaran.com/myPHPCode.html[/URL]

I have looked over the php file and the MySQL database for hours and hours and I still get the error*

Column count doesn’t match value count at row 1

Here’s a screen shot of the database structure. [URL=”http://michaeljbaran.com/databaseStructure.jpg”]http://michaeljbaran.com/databaseStructure.jpg[/URL]

if anyone would like to try and help it would be greatly appreciated, thank you ahead of time.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@fineartist99authorSep 12.2013 — I must say, I'm not a pro at MySQL so if anyone suggests to do a "Run SQL query/queries" within phpMyAdmin please walk me through on exactly what I need to do, thank you.
Copy linkTweet thisAlerts:
@fineartist99authorSep 12.2013 — never mind, I fixed it. The field shopped_during_the_last_year_Heinens_of_Rocky_River was during_the_last_year_Heinens_of_Rocky_River in teh database, I adjusted the database to match the field but it still didn't work. With a little trial and error, with the php file including certain values I narrowed down the cause of the error and am now working on fixing it. The cause is the values that contain Specialty_Store

I'll submit my findings when I fix it if I do.
Copy linkTweet thisAlerts:
@fineartist99authorSep 12.2013 — Good grief, I had 1 extra value in the php file. I removed it and now it works just fine.
×

Success!

Help @fineartist99 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...