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

[eluser]Jondolar[/eluser]
You may want to put the data into the database in the same way that you want to display it. That way you won't have to uc_words() or htmlentities() every time you display it. Might not work for you depending on what else you do with the data.

Also, I too like to format the data prior to sending it to the view for the same reason as you. Others that modify the view file (html code) don't want to mess with any php functions at all.


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