>>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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]