Hi Dear, you must try this query, i hope it will execute right record from the query.
$c= new Criteria() $c->add(QuestionsPeer::USERNAME,'ali',CRITERIA::EQUAL);//put/add CRITERIA::EQUAL at the last. $results = QuestionsPeer::doSelect($c); > Date: Sat, 29 May 2010 08:40:03 -0400 > From: [email protected] > To: [email protected] > Subject: Re: [symfony-users] symfony criteri > > On Fri, 28 May 2010, Parijat Kalia wrote: > > > $c= new Criteria() > > $c->add(QuestionsPeer::USERNAME,'ali'); > > $results = QuestionsPeer::doSelect($c); > > > > Now $results contains all the data of the questions table, where I am > > looking only for the question column, what do I need to add to the above > > query to make it work, > > Im assuming you're using Propel: > > foreach($results as $result) { > print $results->getQuestion(); > } > > > > -- > > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" 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/symfony-users?hl=en _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. https://signup.live.com/signup.aspx?id=60969 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en
