Using the factory pattern (mad rantings of a mind without coffee)
View Single Post
04-06-2008, 11:57 AM
Join Date: Apr 2007
There is no single solution. You could include a file which has the database connection code, for one simple solution. If you're writing the same line of code 100 times (or even 50, 10, 5 times!) then you're setting yourself up for problems in the future as has already been recognised (the example of having to edit 100 files just to change the database type).
View Public Profile
Send a private message to Salathe
Visit Salathe's homepage!
Find More Posts by Salathe