04-06-2008, 12:07 PM
|
#30 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,042
Thanks: 193
|
Quote:
Originally Posted by Salathe
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).
|
Yeah, that's my problem, I love to code so much that I write more code that is useless. :P
__________________
VillageIdiot can have my babbies ;d
|
|
|
|