|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
php/mySQL error...
I am getting this error when running my address book script(see below):
Column count doesn't match value count at row 1 I have 6 tables in my mySQL database: master_name, address, telephone, fax, email, and personal_notes. When running the script, the first and last name will be entered into the database, but nothing else will. Sorry i dont have it working online, I cant figure out how to connect to my mySQL database on netfirms Let me know if you need any other info.Thanks ^dan |
|
|
|
|
|
#2 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
That error is caused because you are posting too few values for the columns. For instance, if you have 8 columns in your table and you only insert 7 and don't tell MySQL that, you will get this error.
I generally always like to specify what data is going in what column. It makes sure that the right data goes into the right column and you can avoid things like this. Something like so: Old Code: PHP Code:
PHP Code:
PHP Code:
__________________
Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|