1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

private $query = ""; --> syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION...

Discussion in 'MySQL' started by postcd, Sep 24, 2020.

  1. #1
    Hello dear MySQL developers, i am mere user and i want to ask you if you can please let me know what is wrong in the file backend/mysql.class.php

    I am asking because the script i have uploaded says this:
    Line 23 is: private $query = "";

    This is PHP 4.4.9. Script is claimed to require PHP 4.3+
    Thank You
     
    postcd, Sep 24, 2020 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,494
    Likes Received:
    4,457
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Nope

    Not even going to go there.

    Use plain mysqli or pdo rather than that outdated stuff.

    It wouldn't take you long to convert it to the right way so you could still use the basic structure - but we'll worry about bugs after it's converted.
     
    sarahk, Sep 24, 2020 IP
  3. postcd

    postcd Well-Known Member

    Messages:
    1,037
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    190
    #3
    I think that this error disappeared when i changed PHP version. I no longer will be using this script, so this does not require further solution.
     
    postcd, Sep 28, 2020 IP