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

[eluser]Madmartigan1[/eluser]
brianw1975, that's not a bad idea. Most of the formatting I usually do is of only a few different types, but it's typically somewhat extensive. Example: For some reason, people like to submit forms with the caps lock key on... so for proper names I almost always trim, strtolower, and a ucwords variant before they go to the view file. (Just an example, I know I can format that before the db insert)

I'm just using a helper file currently, but maybe it should be moved to it's own class. Thanks for the code examples and your time.


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