MortimerCat
08-25-2003, 11:50 PM
I am running PHPtriad (ie Apache & mySQL) on my own personal development PC, where I write my PHP script. Once my PHP is running, I transfer it to my Web Host.
What is the best way of PHP knowing which mySQL host the script is using.
My main reason is that I have accidently setup different names on the two machines. :dnkn:
I want to do
if (DevelopmentMachine)
{
mysql_select_db("dev37",$db);
}
else
{
mysql_select_db("live37",$db);
}
Thanks
What is the best way of PHP knowing which mySQL host the script is using.
My main reason is that I have accidently setup different names on the two machines. :dnkn:
I want to do
if (DevelopmentMachine)
{
mysql_select_db("dev37",$db);
}
else
{
mysql_select_db("live37",$db);
}
Thanks