Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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