try doing

$max=$this->Question->query("select max(qset) from questions where
category_id = ".$this->Session->field('categoryid')." ;");

On 28 ago, 14:59, Muthuvel Subramani <jmsmuthu...@gmail.com> wrote:
> hello i am new to cakephp
> i am using cakephp 1.3
> i need to run the following query,
> $max=$this->Question->query("select max(qset) from questions where
> category_id = ".$this->Session->read('categoryid')." ;");
>
> but its not fetching any values...
>
> should i call anything like executeQuery as we do in normal php..
> please rectify the error
> thank you..

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to