Welcome Guest, Not a member yet? Register   Sign In
Formatting database results
#6

[eluser]n0xie[/eluser]
There are several advantages to using bigtony's solution:

1. You only loop over the recordset once instead of twice
2. The data doesn't change which makes it easier to reuse (since uc_words is just representation logic it shouldn't be in the model or controller imho)

Then again you're free to do what works for you ;-)


Messages In This Thread
Formatting database results - by El Forum - 09-17-2009, 11:32 PM
Formatting database results - by El Forum - 09-18-2009, 01:52 AM
Formatting database results - by El Forum - 09-18-2009, 10:28 AM
Formatting database results - by El Forum - 09-18-2009, 07:43 PM
Formatting database results - by El Forum - 09-19-2009, 12:12 AM
Formatting database results - by El Forum - 09-19-2009, 04:54 AM
Formatting database results - by El Forum - 09-19-2009, 12:30 PM
Formatting database results - by El Forum - 09-19-2009, 02:02 PM
Formatting database results - by El Forum - 09-19-2009, 02:14 PM
Formatting database results - by El Forum - 09-19-2009, 10:16 PM
Formatting database results - by El Forum - 09-29-2009, 02:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB