i´m wondering to... i have a query like this in one of my controllers:

$id = $this->query('SELECT MAX(id) as id FROM '.$this->table.' WHERE
user_id ='.$user_id);
this get´s the highest record id from one table for the specific user.
I would have expected the result to come back as $id -> 34 but instead
it is deeply nested in an 3 dimensional array like this:
$id['0']['0']['id'] -> 34

strange thing.


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