[support] db_select()->condition()

Earnie Boyd earnie at users.sourceforge.net
Fri May 25 21:16:04 UTC 2012


On Fri, May 25, 2012 at 5:07 PM, Michael Prasuhn <mike at mikeyp.net> wrote:
> If you'd actually read the docs and the code you'd see that SelectQuery::execute and db_query() actually return the *exact same thing*.

Uh, no it does not return the same thing or I would be able to do
db_select()->execute()->fetch().

You must use foreach(db_select()->execute() as $row) to get the data
and the data type of the first parameter of foreach is an array.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd


More information about the support mailing list