I am very new to cakePHP   and have been running the examples given in
the sites. I tried running a simple bookmark page by creating a
bookmarks table, bookmark model and a bookmarks_controller. The table
contains a id field which is auto_increment. When I try to insert a
new record, It gives me this error:

Query: INSERT INTO `bookmarks`
(`id`,`name`,`url`,`modified`,`created`) VALUES
('','ppp','[EMAIL PROTECTED]','2008-04-08 11:36:07','2008-04-08 11:36:07')

Warning (512): SQL Error: 1366: Incorrect integer value: '' for column
'id' at row 1 [CORE\cake\libs\model\datasources\dbo_source.php, line
440]

I understand that the error is because the primary key is not having
any values. I have mysql database and id field is auto_increment.
Please help me out, how i can correct this.

Thanking you,
Priya

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to