What is this solution to this localhost error?

Discussion in 'MySQL' started by mazino, Sep 25, 2011.

  1. #1
    I'm trying to install a script. New to this, actually.
    This error keeps coming up.
    Parse error
    : syntax error, unexpected T_STRING in /home/myusername/public_html/newscript/conn.php on line 2

    This is my conn.php file. What am I doing wrong? Thanks.
    <?php
    MySQL® Database Wizard

    //enter your MySQL database host name, often it is not necessary to edit this line
    $db_host = "localhost";
     
    mazino, Sep 25, 2011 IP
  2. elicitservers

    elicitservers Peon

    Messages:
    714
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Comment out the 2nd line with "//":
    <?php
    //MySQL® Database Wizard
    
    //enter your MySQL database host name, often it is not necessary to edit this line
    $db_host = "localhost"; 
    Code (markup):
     
    elicitservers, Sep 25, 2011 IP
  3. mazino

    mazino Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks...Please say it in plain English. I'm a complete lefthanded noob. Kindly explain or copy and paste here what you mean..sorry I'm totally new to this. Willing to learn.

    //enter your MySQL database host name, often it is not necessary to edit this line
    $db_host = "localhost";
     
    mazino, Sep 25, 2011 IP
  4. elicitservers

    elicitservers Peon

    Messages:
    714
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Put "//" in front of the 2nd line, which contains "MySQL® Database Wizard". This is just text, not actual code, so we need to tell PHP not to process it by adding "//" in front of it.
     
    elicitservers, Sep 29, 2011 IP