Jump to content

MYSQL/PHP Error


slowride326

Recommended Posts

Parse error: syntax error, unexpected T_STRING in /home/policeex/public_html/mdc/login/include/database.php on line 24

 

23  /* Make connection to database */

24    $this->connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error());

25      mysql_select_db(DB_NAME, $this->connection) or die(mysql_error());

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/242813-mysqlphp-error/
Share on other sites

1. use code tags when posting code

2. the offending line and the one before and after are very VERY rarely enough to diagnose the problem

3. 2 is perticularly true when the directly preceding line is commented out

4. generaly people include a form of question in their post....

Link to comment
https://forums.phpfreaks.com/topic/242813-mysqlphp-error/#findComment-1247177
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.