Hi guys
I do sql query for example $this->query('SELECT now()');
and i get response like this

Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [now()] => 2008-10-09 17:16:21
                )

        )

)

Why not just return response in a single level array?
of course i can get single level array using expression like this

$result = $result[key($result)];
$result = $result[key($result)];

But i think there must be more intelligent way, can anyone help
please?
Point me where i can read more about it

Thank you!
--~--~---------~--~----~------------~-------~--~----~
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