Try debug($clon) and you'll see. On Sun, May 31, 2009 at 9:06 AM, Unaxillo <[email protected]> wrote: > > Hey guys, i'm trying to do this, but i can't get to work: > > function verclones($id){ > > $this->layout = "limpio"; > > $clones=$this->Visitante->query("SELECT DISTINCT usuario_id > FROM > visitantes WHERE ip=(SELECT ip FROM visitantes WHERE usuario_id=$id > ORDER BY ip DESC LIMIT 1)"); > > $this->set("clones",$clones); > } > > > In the view file i put this: > > <?php foreach($clones as $clon):?> > > <?php echo $clon;?> > > <?php endforeach;?> > > But it returns the word "Array". > > What i'm doing wrong? Can somebody help me? Thank u! Love this group. > > > >
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
