hi Abhi... Am Thursday, den 25.08.2011, 02:22 -0700 schrieb abhimanyu bv:
> i developed a page to save deals into database.till yesterday it was > working fine.now its not working, an error is coming like SQL Error: > 1062: Duplicate entry '' for key 'PRIMARY'. and query it showng is > Query: INSERT INTO `deals` (`no_of_coupons`, `deal_type_id`, > `disabled`, `modified`, `created`) VALUES (0, 0, 0, '2011-08-25 > 14:34:13', '2011-08-25 14:34:13') . while in the data array i am > passing integers to no_of_coupons, deal_type_id. how to fix this error? what is the name of your primary key (post your db schema if necessary)? does it have auto-increment set? cheers, Sebastian -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
