Need some advice about a sql class
Posted: Mon Feb 06, 2006 9:27 am
Hi all,
I was just wondering if it's a good idea to create a class for all the queries my site uses.. Basically i want to store all the queries on my db in a class instead of running them from different pages. Incase something needs to be changed then a class is easier to maintain then all the different pages...
What do you think about it, should or shouldn't I store all possible queries in a class or is it better to fire off queries from individual pages?
Thanks for any comments on this...
I was just wondering if it's a good idea to create a class for all the queries my site uses.. Basically i want to store all the queries on my db in a class instead of running them from different pages. Incase something needs to be changed then a class is easier to maintain then all the different pages...
What do you think about it, should or shouldn't I store all possible queries in a class or is it better to fire off queries from individual pages?
Thanks for any comments on this...