Well, I have a work-around..I found that my original syntax of:

$conditions = "School.name LIKE '%{$formSchools['name']}%'";

was setting $conditions as a string, and not an array.  Which is why
it was replacing the array that was defined before it.

So instead (until I can find the right syntax), i'm appending the name
variable first, and then checking the remaining variables:

*******************
$conditions = array("School.name LIKE" => "%{$formSchools['name']}
%");

$conditions['School.zip_mail'] = $formSchools['zip_mail'];

$conditions['School.street_mail'] = $formSchools['street_mail'];

$conditions['School.state_mail'] = $formSchools['state_province'];
*******************

This works for now, but i'd really like to know how to do this
correctly.  Once I need to have two LIKE conditions (using this
method), i'll be S.O.L.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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