Moaning scripts, eh?  The list can't hear it.  The error message would
help us diagnose.

Maybe your query returned no results.

And I think findBySql is old skool, cuz.

By that, I mean it's deprecated, use $this->Model->query() instead.



On May 18, 9:22 am, Enchy <[EMAIL PROTECTED]> wrote:
> $this->set('telephone',$this->Order->findBySql("SELECT tel FROM
> suppliers WHERE id='$id'"));
>
> echo $telephone[0][suppliers][tel];
>
> When I do this it moans that I have to define suppliers and tel


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