PDA

View Full Version : Grouping result set - HOW TO


stryka
08-07-2008, 12:58 AM
Here is the scenario... i have an existing VBULLETIN query that displays my data...

However, i want to create a plugin to take the result set and group it... i don't want to recreate the query in a plugin and group by the field... is there any way to capture the result set during or after the WHILE or FOR EACH statement and group on the array/result?

Thanks in advance

Dismounted
08-07-2008, 09:55 AM
Many vBulletin queries (the large ones) have variables in them where you can hook into to change the query (eg. $hook_query_where), you could add a "GROUP BY" to one of these variables.