Welcome Guest, Not a member yet? Register   Sign In
Database MVC seperation problems (beginners question)
#4

[eluser]TheFuzzy0ne[/eluser]
That will work too, although there's not much point in storing the result in a variable as you're not doing anything with the variable other than returning it. Returning the result straight from the query is a little more efficient on RAM usage, and slightly less code to read and maintain.


Messages In This Thread
Database MVC seperation problems (beginners question) - by El Forum - 03-02-2009, 08:06 PM
Database MVC seperation problems (beginners question) - by El Forum - 03-02-2009, 08:13 PM
Database MVC seperation problems (beginners question) - by El Forum - 03-02-2009, 08:15 PM
Database MVC seperation problems (beginners question) - by El Forum - 03-02-2009, 08:19 PM
Database MVC seperation problems (beginners question) - by El Forum - 03-02-2009, 08:21 PM
Database MVC seperation problems (beginners question) - by El Forum - 03-02-2009, 08:49 PM
Database MVC seperation problems (beginners question) - by El Forum - 03-02-2009, 09:37 PM
Database MVC seperation problems (beginners question) - by El Forum - 03-02-2009, 09:50 PM
Database MVC seperation problems (beginners question) - by El Forum - 03-02-2009, 09:54 PM
Database MVC seperation problems (beginners question) - by El Forum - 03-03-2009, 12:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB