Welcome Guest, Not a member yet? Register   Sign In
Avoid conflict between column names ?
#9

(11-07-2017, 08:16 PM)SomeGuy Wrote: Best practice for me has always been to load each record as a model. Then name your columns whatever you want, the database logic will be tied to the model and you would just use $my_model->full_name which could be something like.... (you'll have to setup an autoloader or 2 to use this method...)

That actually is a really interesting idea. I will have a closer look at it on the next build I do, thankyou.

Paul
Reply


Messages In This Thread
Avoid conflict between column names ? - by Coool6 - 11-07-2017, 12:38 AM
RE: Avoid conflict between column names ? - by PaulD - 11-08-2017, 11:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB