View Single Post
  #1 (permalink)  
Old Mar 20th, 2008, 23:35
CloudedVision's Avatar
CloudedVision CloudedVision is offline
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 942
Blog Entries: 8
Thanks: 2
Thanked 22 Times in 22 Posts
Send a message via AIM to CloudedVision Send a message via MSN to CloudedVision Send a message via Skype™ to CloudedVision
Column count not matching, completely confuzzled

I've been trying to insert a value into a table with this:

Code: Select all
INSERT INTO `page` VALUES('2','asdfasdf','0','','2','1','20080320193013','20080320193013')
But I get the following error: Incorrect integer value: '' for column 'parent' at row 1

I figured the timestamps might be messing it up, but I've tried it with one of them and none of them, still doesn't work. Any help? This is the table:


Code: Select all
DROP TABLE IF EXISTS `divaba_development`.`page`;
CREATE TABLE  `divaba_development`.`page` (
  `id` smallint(5) unsigned NOT NULL,
  `name` varchar(20) default NULL,
  `type` tinyint(4) default NULL,
  `parent` smallint(5) unsigned default NULL,
  `order` smallint(5) unsigned default NULL,
  `nav` tinyint(3) unsigned default NULL,
  `updated_at` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `created_at` timestamp NOT NULL default '0000-00-00 00:00:00',
  UNIQUE KEY `id` (`id`),
  KEY `parent` (`parent`),
  KEY `order` (`order`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
__________________
echo "Take it easy, ".$CloudedVision;
.links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; }
<quote>&quot;I think it's wrong that only one company makes the game Monopoly&quot; - <name>Steven Wright</name></quote>
Reply With Quote