FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Help on paths





nivre
<?
$username="username";
$password="password";
$database="databasename";

mysql_connect(localhost,$username,$password);
@mysql_select_db($database)or die ("Unable to select database");
?>

this script is used in xampplite...what if i'll transfer this to my web host?
is there any changes that will be made specially in the localhost part.. @mysql_connect(localhost,$username,$password);?
mathiaus
localhost won't change. Username and database will though and your password if it's different.
imagefree
if the database of the same name and username password exist on the localhost, script will work fine.
nivre
thanks for the help...
Related topics
can i help?
help,Bonding
HELP!!
Help me with MySQL Account Maintenance and phpBB 2.0.15 :((
help, change pass my acc in cpanel
help me upgrade php to 5.
Need help adding a domain
help add admin in phpbb forum
How to solve this problem? Thanks
Help!
Help me change port for phptriad
problam Plz help
Help!!
Google Ads help fund Spyware ?
XP startup items help
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.