rowI’m new at zend, so please be patient :).
I need to extract only 5 results from a mysql query, how can I do this loop to work?, I’ll try to explain myself:
$var = $db->query($sql);
while($rows = $var->fetch()) {
$msg = 'loop from 1 to 5';
}
return $this->view->msg = $msg;
Hope you guys understand my issue, I know already the sentences are not correct written, but making myself understandable, please help
Thanks
Maybe something like this might help get you on your way?