column count doesnt match at row 1

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
brmcdani
Forum Newbie
Posts: 17
Joined: Wed Sep 02, 2009 8:21 pm

column count doesnt match at row 1

Post by brmcdani »

What exactly does column count doesnt match at row 1 mean?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: column count doesnt match at row 1

Post by requinix »

It means the number of columns mentioned in your INSERT query isn't the same as the number of values you tried to insert.

Next time don't assume that somebody knows what you're talking about: give a lot more information.
brmcdani
Forum Newbie
Posts: 17
Joined: Wed Sep 02, 2009 8:21 pm

Re: column count doesnt match at row 1

Post by brmcdani »

Well it's an error message. I just wanted to know what it meant so there was no need to include anything else.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: column count doesnt match at row 1

Post by requinix »

brmcdani wrote:Well it's an error message. I just wanted to know what it meant so there was no need to include anything else.
No, not true. PHP is infamous for error messages that don't let strangers know every detail of your application by giving a generic message corresponding to some code they can't see.
Post Reply