Jump to content

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


krislives

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.