I am working on a simple app that accepts requests for information
which include an email and a department number.  A request is logged
and then forwarded to the granting party if the requestor is
authorized to get information about that particular department.

Another table [part of another system-I can only read from] contains
in a single field/string one email per record along with one or more
department numbers that this person is authorized to see information
about.

I have written a plain vanila PHP and SQL bit that can, given an email
address and a dept. number return authorized yes or no. I am just lazy
and want to use the (now understood by me after much blood sweat and
tears) easy and elegant form creation and validation parts of Cake.

Can I do a findCount on the auths table and feed it the input email
and ru as part of a regular expression? then if the find is =>1 then I
assume the request is authorized? Any example code would be much
appreciated as I'm unable so far to figure out how to do that.

Thanks,
Derek


--~--~---------~--~----~------------~-------~--~----~
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