jefargrafx
Instructor
mysql_connect("localhost","username","password"
;
mysql_select_db("dbname"
;
is for my test box locally.
but when I upload I have to change the server name to
mysql_connect("148.1.23.12","username","password"
;
mysql_select_db("dbname"
;
148.1.23.12 which is the ip address of the server in production.
my question....is there a better way to do this where I won't have to change the connection per server?
like maybe a varible name for the servername?
or better yet have some script sniff out the servername the file is on? localhost, ip, or whereever....
let me know what ya think
jef

mysql_select_db("dbname"

is for my test box locally.
but when I upload I have to change the server name to
mysql_connect("148.1.23.12","username","password"

mysql_select_db("dbname"

148.1.23.12 which is the ip address of the server in production.
my question....is there a better way to do this where I won't have to change the connection per server?
like maybe a varible name for the servername?
or better yet have some script sniff out the servername the file is on? localhost, ip, or whereever....
let me know what ya think
jef