this will help me but it is not returning value it is returning only Array as value please help me how to solve this porblem -----------see this ---------------------------------- Counter : Array
function index(){ $count = $this->Entry->find('all', array('fields' => array('(max (Entry.counter)) as max_counter'))); $this->set('count',$count); $name=$this->Session->read('User'); $query1=mysql_query("select id from users where username='$name'"); $row1=mysql_fetch_array($query1); $user_id=$row1[0]; $this->set('user_id',$user_id); $this->Entry->recursive = 1; $this->set('entries', $this->Entry->findAll(null, null, array ('Section.id' => 'ASC','Submenu.submenu' => 'ASC'))); } It is returning value as counter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---