Jump to content

Table won't add more than 127 rows!!!!!


lunac

Recommended Posts

Please help. I designed a directory manager for a client. It was working absolutely perfectly with test data. Now that we're ready to go to production, I tried to add their actual data. BUT... for some reason it won't add more than 127 rows to the table. I need at least 300.

It gives me error: [color=red]#1062 - Duplicate entry '127' for key 1[/color]

What am I doing wrong?

Here's the table schema:

[code]
CREATE TABLE `directory` (
  `directory_id` tinyint(8) NOT NULL auto_increment,
  `area` varchar(255) NOT NULL default '',
  `lname` varchar(255) NOT NULL default '',
  `fname` varchar(255) NOT NULL default '',
  `lname2` varchar(255) NOT NULL default '',
  `fname2` varchar(255) NOT NULL default '',
  `traffic` enum('yes','no') NOT NULL default 'no',
  `house_num` int(255) NOT NULL default '0',
  `street_name` varchar(255) NOT NULL default '',
  `phone` varchar(255) NOT NULL default '',
  `email` varchar(255) NOT NULL default '',
  `notes` mediumtext NOT NULL,
  `new_neighbor` enum('yes','no') NOT NULL default 'no',
  `shca_board` enum('yes','no') NOT NULL default 'no',
  `shca_volunteer` enum('yes','no') NOT NULL default 'no',
  `vacant` enum('yes','no') NOT NULL default 'no',
  PRIMARY KEY  (`directory_id`)
) TYPE=MyISAM
[/code]
Link to comment
https://forums.phpfreaks.com/topic/33919-table-wont-add-more-than-127-rows/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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