krislives Posted June 6, 2008 Share Posted June 6, 2008 Hi all, I'm new to php, and im getting the above error which can only be linked to my insert statement: <?php $sql = "INSERT INTO ".$_CONF['tprefix']."players (id, lname, fname, birthday, email, hphone, wphone, address, teamid, position, number, info, photo, registered, requested, uname, password, mphone) VALUES ('','$lname','$fname','$birthday','$email','$hphone','$wphone','$address','$teamid','$position','$number','','','0','$requested','$uname','$password','$mphone')"; ?> Table has the following columns: Id, lname, fname, birthday, email, hphone, wphone, address, teamid, position, number, info, photo, registered, requested, uname, password, mphone. I've researched the error message on google, and it seems to happen when you are trying to insert more columns from my "insert" statment then what is in my table. I don't see that in what I have above. Can someone shed the light with the knowledge. Many Thanks Quote Link to comment https://forums.phpfreaks.com/topic/109034-1136-column-count-doesnt-match-value-count-at-row-1/ Share on other sites More sharing options...
krislives Posted June 6, 2008 Author Share Posted June 6, 2008 I have now solved this problem... How do I close this thread? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/109034-1136-column-count-doesnt-match-value-count-at-row-1/#findComment-559347 Share on other sites More sharing options...
.josh Posted June 6, 2008 Share Posted June 6, 2008 did you check your actual table in phpmyadmin or w/e and make sure that all of those columns exist (and are spelled right) and there's no more? edit: what was the solution (and mark it as solved, bottom left) Quote Link to comment https://forums.phpfreaks.com/topic/109034-1136-column-count-doesnt-match-value-count-at-row-1/#findComment-559348 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.