|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Dear Guys,
When I am doing an "INSERT" in a PHP file, i am getting an error "Column count doesn't match value count at row 1" Normally it comes when the number of column names in a SQL query does not match the number of values we pass in that query. I made sure it is the case, and i am still getting this error. My Insert statement -------------------- PHP Code:
-------------------------------------------- CREATE TABLE lk_contact( id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), fname VARCHAR(30), lname VARCHAR(30), title VARCHAR(50), company VARCHAR(20), worktel1 VARCHAR(20), worktel2 VARCHAR(20), worktel3 VARCHAR(20), workfax VARCHAR(20), workadd VARCHAR(20), mobtel1 VARCHAR(20), mobtel2 VARCHAR(20), mobtel3 VARCHAR(20), hometel1 VARCHAR(20), hometel2 VARCHAR(20), hometel3 VARCHAR(20), homeadd VARCHAR(100), email VARCHAR(40), webpage VARCHAR(150), comments VARCHAR(400), bday VARCHAR(20), afname VARCHAR(20), alname VARCHAR(20), aemail VARCHAR(20), awrkno VARCHAR(20), lkgroup VARCHAR(20)); Please, if you find any thing wrong here, please let me know.. 3 hours of trying different things. No luck. Thanks for your Time. Regards. Shiyam Last edited by Jaan; 09-02-2008 at 01:10 AM. Reason: Please use code tags when you're posting your codes! |
| Sponsored Links |
|
|
|
|||||
|
Quote:
PHP Code:
PHP Code:
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
| Sponsored Links |
|
|
|
|||||
|
Quote:
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using ODBC to determine column uniqueness & check constraints | Tronman | Database & Database Programming | 1 | 05-21-2008 12:01 PM |
| Java:Tutorial - Tic-Tac-Toe | John | Java Tutorials | 25 | 02-27-2008 07:41 PM |
| Getting Row Count | Lop | Managed C++ | 2 | 01-10-2007 09:17 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 97%