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:
    http://mvenkatapathy.wordpress.com
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice