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? Link to comment https://forums.phpfreaks.com/topic/218679-problem-connecting-to-mysql/ 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. Link to comment https://forums.phpfreaks.com/topic/218679-problem-connecting-to-mysql/#findComment-1134230 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.