Welcome Guest, Not a member yet? Register   Sign In
removing duplicate MYSQL generated array results
#5

[eluser]darkhouse[/eluser]
I think jedd is right, tidy up the array. You wouldn't be able to do that with DISTINCT, the data is technically already DISTINCT. You just need to loop through and keep track of previous sections and categories.

However, I don't really see the difference in overhead if you do it in the model or not. It has to be done somewhere, so might as well do it in the model and just send the appropriate data to the controller, then view.


Messages In This Thread
removing duplicate MYSQL generated array results - by El Forum - 09-10-2009, 09:48 AM
removing duplicate MYSQL generated array results - by El Forum - 09-10-2009, 09:58 AM
removing duplicate MYSQL generated array results - by El Forum - 09-10-2009, 06:20 PM
removing duplicate MYSQL generated array results - by El Forum - 09-10-2009, 07:57 PM
removing duplicate MYSQL generated array results - by El Forum - 09-10-2009, 09:56 PM
removing duplicate MYSQL generated array results - by El Forum - 09-11-2009, 01:19 AM
removing duplicate MYSQL generated array results - by El Forum - 09-11-2009, 03:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB