1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

unexpected T_STRING

Discussion in 'PHP' started by grif, Sep 30, 2009.

  1. grif

    grif New Member

    Joined:
    Sep 30, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    devon
    ;)I am trying to run a config.php file to connect to mysql database but i'm getting a error Parse error: syntax error, unexpected T_STRING on the last line amy ideas how to over come this my last line is mysql_select_db ($winahome_biz $db)
     
  2. venami

    venami New Member

    Joined:
    Dec 26, 2008
    Messages:
    195
    Likes Received:
    10
    Trophy Points:
    0
    Occupation:
    Software Professional
    Location:
    India, Tamil Nadu, Cuddalore
    Home Page:
    This happens due to syntax error.

    I think you have missed a comma between the arguments and a semi colon at the end.

    mysql_select_db($winahome_biz, $db);
     

Share This Page