I'm trying to use a findall query and use the MYSQL DATE_FORMAT
function.

The code is

$criteria = array();
$criteria['DATE_FORMAT(Schedule.start,\'%w\')'] = 3;
$this->Schedule->findAll($criteria);


My code as it runs produces...

SELECT * FROM `studioschedules` AS `Schedule`WHERE
DATE_FORMAT(`Schedule`.`start,'%w'`) = 3

which causes an error.  What is the correct way to put this query
together?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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