syntax error, unexpected T_LNUMBER, expecting T_VARIABLE

Discussion in 'PHP' started by leeno, Sep 13, 2007.

  1. #1
    Hello

    I would very much appreciate if someone could please help with the following error message and how to correct it. Thanks

    Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/nobby/public_html/ebookgate/includes/functions/database.php on line 10

    I have included the code starting from line 9


    9 if (USE_PCONNECT == 'true') {
    10 $$link = mysql_pconnect($server, $username, $password);
    11 } else {
    12 $$link = mysql_connect($server, $username, $password);
    13 }
     
    leeno, Sep 13, 2007 IP
  2. hamidof

    hamidof Peon

    Messages:
    619
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Replace it with:
    9 if (USE_PCONNECT == 'true') {
    10 $link = mysql_pconnect($server, $username, $password);
    11 } else {
    12 $link = mysql_connect($server, $username, $password);
    13 }
     
    hamidof, Sep 13, 2007 IP