View Single Post
Old 11-30-2012, 08:17 PM   PM User | #2
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 848
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
I see what you mean and I found this hassle. How many times are you calling that function? Do you have multiple databases or just one?

Just upload your local version. When it is live, go into your host directories and manually edit all the connection stuff. Then you've only done it once and you also keep a copy of your original localhost versions of the files. Once you got a live version, you can work locally, then just copy paste the code into your live version by going into the bit where you upload and editing the file which is online directly.

Hope it helps.

Maybe someone can give you better information and good tips to keep in mind. This is what I do but I'm no expert.

Regards,

LC.
LearningCoder is offline   Reply With Quote