RE: [PHP-WIN] authorization system

From: Date: Mon, 15 Oct 2001 14:40:14 +0000
Subject: RE: [PHP-WIN] authorization system
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9854@lists.php.net to get a copy of this message
>>I am having troubles connecting and a couple of errors also. >>Could somebody please point me in the right direction? >>Thanks in advance <snip> // login to the database mysql_host = www.site.net; mysql_user = username; mysql_pass = password; $mylink = mysql_connect('mysql_host', 'mysql_user', 'mysql_pass') or die ("could not connect"); <snip> You need to define mysql_host as a variable by putting the $ sign in front. You won't need the quotes inside the mysql_connect, but you will need them around the variable values: // Should be // login to the database $mysql_host = 'www.site.net'; $mysql_user = 'username'; $mysql_pass = 'password'; $mylink = mysql_connect($mysql_host, $mysql_user, $mysql_pass) or die ("could not connect"); Haven't looked at much else in the code though. Are you getting any other errors other than the ones that these should fix? Let us know Regards Ross

« previous php.windows (#9854) next »