how fix Parse error: syntax error

Discussion in 'PHP' started by talker1, Apr 8, 2010.

  1. #1
    I have a syntax error on this file how can fix it?

    Parse error: syntax error, unexpected ',' in C:\wamp\www\setup.php on line 23

    thanks.
     

    Attached Files:

    talker1, Apr 8, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    You are not defining a function on line 23! I'd assume looking at the structure of your code your attempting to connect to your database, so try using mysql_connect()

    Change line 23 from:

    ( $_DB['hostname'], $_DB['username'], $_DB['password'], $_DB['name'], $_DB['type'], TRUE, $_DB['port'] );
    PHP:
    To:

    mysql_query($_DB['hostname'], $_DB['username'], $_DB['password'], $_DB['name'], $_DB['type'], TRUE, $_DB['port']);
    PHP:
     
    danx10, Apr 8, 2010 IP