Umm it looks nice but when i run the populate function i get:

Warning (512): SQL Error: 1064: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near 'populate' at line 1 [C:\wamp\www
\cake_1.2\cake\libs\model\datasources\dbo_source.php, line 440]

Code | Context

$sql    =       "populate"
$error  =       "1064: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near 'populate' at line 1"

            e("<p style = \"text-align:left\"><b>Query:</b> {$sql} ");

            if ($error) {

                trigger_error("<span style = \"color:Red;text-
align:left\"><b>SQL Error:</b> {$this->error}</span>",
E_USER_WARNING);

DboSource::showQuery() - C:\wamp\www\cake_1.2\cake\libs\model
\datasources\dbo_source.php, line 440
DboSource::execute() - C:\wamp\www\cake_1.2\cake\libs\model\datasources
\dbo_source.php, line 166
DboSource::fetchAll() - C:\wamp\www\cake_1.2\cake\libs\model
\datasources\dbo_source.php, line 297
DboSource::query() - C:\wamp\www\cake_1.2\cake\libs\model\datasources
\dbo_source.php, line 258
Model::call__() - C:\wamp\www\cake_1.2\cake\libs\model\model.php, line
485
Overloadable::__call() - C:\wamp\www\cake_1.2\cake\libs
\overloadable_php5.php, line 59
Employee::populate() - [internal], line ??
EmployeesController::populate() - APP\controllers
\employees_controller.php, line 11
Dispatcher::_invoke() - C:\wamp\www\cake_1.2\cake\dispatcher.php, line
265
Dispatcher::dispatch() - C:\wamp\www\cake_1.2\cake\dispatcher.php,
line 237
[main] - APP\webroot\index.php, line 84

Population complete
2 queries took 6 ms Nr  Query   Error   Affected        Num. rows       Took 
(ms)
1       DESCRIBE `scms_employees`               5       5       5
2       populate        1064: You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'populate' at line 1                 1
--~--~---------~--~----~------------~-------~--~----~
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