Friday, August 26, 2011

Re: cakephp saving not working

What is the data type of the primary key of the table? Sounds like it is too low and you have reached the maximum incremental value.

Jeremy Burns
Class Outfit

Tel: +44 (0) 208 123 3822
Mob: +44 (0) 7973 481949
Skype: jeremy_burns
http://www.classoutfit.com

On 25 Aug 2011, at 10:22, abhimanyu bv wrote:

hi all,
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?

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: