Re: connection

From: Date: Sun, 29 Sep 2002 12:06:04 +0000
Subject: Re: connection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118064@lists.php.net to get a copy of this message
You need to set the parameters to whatever your ISP granted you for use of MySQL... $dbcnx = mysql_connect("servername","username","password"); You should ask your ISP what these are. Justin French on 29/09/02 9:54 PM, DC (dcurran@powerup.com.au) wrote: > Hi, > > OK I have my first php/mysql web site complete & working on my computer > using apache server. When I transfer the files to web space, I receive > errors regarding connection to database. Obviously the various pieces of > code I have used to connect it all up eg > <? > $dbcnx = mysql_connect("localhost","",""); > mysql_select_db("databaseName",$dbcnx); > ?> > > etc etc > > needs to be changed to what to see the site working live ? > > Any ideas or tips greatly appreciated!!!!!!! > > Thanks > > DC > > > > >

« previous php.general (#118064) next »