![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
Regular Coder ![]() Join Date: Jun 2003
Location: Australia
Posts: 506
Thanks: 6
Thanked 7 Times in 7 Posts
![]() |
INSERT - works on my server but not my domain :-(
Hiya,
This is a snippet of code I have on my site: PHP Code:
But when I uploaded my files to my domain, it only works like this: PHP Code:
I have about 20 pages of database activity - I really do not want to have to go through every single page and find every single connect. Anyone know why this would be occouring or somehow I can fix this? |
|
|
|
|
|
PM User | #2 | ||
|
Senior Coder ![]() Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 1,890
Thanks: 5
Thanked 22 Times in 18 Posts
![]() |
I don't have a clue why it's doing that, but with a simple script editor you can execute a "find, replace all" macro and change:
Quote:
Quote:
Maybe you already thought of this, but I thought I'd throw it out there...
__________________
Regards, R.J. Media Moguls Cleveland, Ohio Web Site Design and Application Development |
||
|
|
|
|
|
PM User | #3 |
|
Master Coder ![]() ![]() Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
you should put your connectionstring (including the mysql_select_db() inside a seperate file that you then include in each page that requires a db-connection).
so if you need to change your code, you might as well fix it proberly...
__________________
Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|