slj90 Posted November 15, 2010 Share Posted November 15, 2010 <?php $username="a7564065_si"; $password="*****"; $database="a7564065_food"; mysql_connect(mysql4.000webhost.com,$username,$password); ... I am trying to connect to mysql but having trouble. The host name: mysql4.000webhost.com I get the error: Parse error: syntax error, unexpected T_DNUMBER in /home/a7564065/public_html/Index.html on line 17 Any ideas? Quote Link to comment Share on other sites More sharing options...
requinix Posted November 15, 2010 Share Posted November 15, 2010 All strings need quotes around them. Yes, the domain name is supposed to be a string. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.