the first is about a conditions array, I can't find any documentation
on how to integrate "ORDER BY" into an array formatted conditions
statement like the one below. Does anyone know how to do this?
$conditions= array
("or" =>
array
(
"Post.title" => array("First post", "Second post", "Third
post"),
"Post.created" => "> " . date('Y-m-d', strtotime("-2 weeks"))
)
)
My second questions is about the $this->table->save() command. I'd
like to do a save on multiple fields based on a field other than the
id (ie "UPDATE tablename SET fields=values WHERE field_other_than_id =
'some value';"). Can I use the save function to do this or do I need
to do it some other way? Thanks for your help.
Dave
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---