On Mar 24, 5:31 am, Raistlin Majere <[EMAIL PROTECTED]> wrote:
> The 3 errors are happening to files out of the app Folder.
>
> 1
>
> Query: INSERT INTO rated (account_id) VALUES ('3')
> Warning: SQL Error: 1062: Duplicate entry '0' for key 1 in C:\AppServ
> \www\CakePHP\cake\libs\model\datasources\dbo_source.php on line 440
>
> 2
>
> Query: INSERT INTO rated (points) VALUES ('10')
> Warning: SQL Error: 1062: Duplicate entry '0' for key 1 in C:\AppServ
> \www\CakePHP\cake\libs\model\datasources\dbo_source.php on line 440
>
> 3
>
> Warning: Cannot modify header information - headers already sent by
> (output started at C:\AppServ\www\CakePHP\cake\basics.php:697) in C:
> \AppServ\www\CakePHP\cake\libs\controller\controller.php on line 447
>
> What do these error messages mean?

1) Means what it says. you are generating an sql error.
2) see 1
3) Means that the redirect your code is trying to perform, can't be
executed because of those error messages (you can't send a header
after sending output)

<snip>
> Why is article_id not giving me an error?

Please look at the blog tutorial. You *do not* need to use query to
perform all your db work and if you do so you a) lose a lot of
benefits b) are basically on your own.

AD
--~--~---------~--~----~------------~-------~--~----~
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