Hi there,

I would like to fill the input field of a form with the E-Mail Adress
of the given Name.
That's what it looks like in my controller:

$this->data['Input']['user']=$this->Input->query('SELECT email FROM
users WHERE name=\'michael\'');

I have set the debug level to 3 and he says that the query is executed.
But in my Browser I get the error:

"htmlspecialchars() expects parameter 1 to be string, array given in
myapp/cake/basics.php"

How can I be sure to get a string as return value?


Thanks

Felix


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

Reply via email to