Far Cry Posted May 31, 2010 Share Posted May 31, 2010 I get this error when trying to acsess my messaging inbox: Parse error: syntax error, unexpected T_DNUMBER in /home/a1535619/public_html/databases.php on line 2 It's saying there is an error in my connect file: <?php mysql_connect (***Host***, ****Database Username***, *****Pass****) or die ('I cannot connect to the database because: ' . mysql_error(); or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("db_name"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/203466-php-error-help/ Share on other sites More sharing options...
premiso Posted May 31, 2010 Share Posted May 31, 2010 <?php mysql_connect (***Host***, ****Database Username***, *****Pass****) or trigger_error('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("db_name"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/203466-php-error-help/#findComment-1065912 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.