Welcome Guest, Not a member yet? Register   Sign In
form upload question
#3

[eluser]Colin Williams[/eluser]
Wow.

Quote:Column count doesn’t match value count at row 1

INSERT INTO entries (title, image, pub_date, body) VALUES (’test work’,NULL, NOW(),’test comments go here’, ‘http://codeigniter.com/’)

Your column count is 4. Your values count is 5. Easy 'nuff.

Also, this mishap can be avoiding by using the Active Record's insert() method rather than writing it out like that. And please don't say you didn't know you could do that. If nothing else, read through the Database Class part of the User Guide. Twice Smile


Messages In This Thread
form upload question - by El Forum - 06-24-2008, 02:09 PM
form upload question - by El Forum - 06-26-2008, 03:04 PM
form upload question - by El Forum - 06-26-2008, 03:48 PM
form upload question - by El Forum - 06-26-2008, 03:58 PM
form upload question - by El Forum - 06-26-2008, 04:15 PM
form upload question - by El Forum - 06-30-2008, 04:18 PM
form upload question - by El Forum - 06-30-2008, 04:46 PM
form upload question - by El Forum - 06-30-2008, 05:35 PM
form upload question - by El Forum - 07-01-2008, 02:39 PM
form upload question - by El Forum - 07-02-2008, 12:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB