I’m stuck for a while, I try to display the result of a variable that executes a sql query in an html table, here is my code;
$REQUT = Doctrine_Query::create()
->select('DISTINCT r.prod , r.di, COUNT(*) as Result')
->from('tabl r')
->groupBy('r.di')
->orderBy('Result ASC') ;
$REQUT->fetchArray();
PS : I work in symfony, I am looking to have a view like mysql
You need to loop through the result set. I don’t know this particular API, but assuming it works similarly to others: