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?


$rated=$this->Article->query("SELECT * FROM rated WHERE
account_id='$account_id'");

if (!empty($points) && empty($rated))
{
        $this->Article->query("INSERT INTO rated (article_id) VALUES
('$article_id')");

        $this->Article->query("INSERT INTO rated (account_id) VALUES
('$account_id')");

        $this->Article->query("INSERT INTO rated (points) VALUES
('$points')");

        $this->redirect('/articles/result/select/'.$article_id.'/'.
$account_id);
}


Why is article_id not giving me an error?
--~--~---------~--~----~------------~-------~--~----~
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