1
Come usare LIMIT in getQuery
Dato l'SQL desiderato: SELECT * FROM #__tablename LIMIT 5 Come posso usare $ query per realizzarlo? $db = JFactory::getDBO(); $query = $db->getQuery(true); $query->select($db->nameQuote('*')); $query->from($db->nameQuote('#__tablename')); $db->setQuery($query); $rows = $db->loadObjectList();