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.

Warning: mysqli_query() expects parameter 1 to be mysqli, string given in [path]\includes\class_core

Discussion in 'PHP' started by John D, Jul 8, 2017.

  1. #1
    Hey,

    Getting this this error when I put my site on a local server ( XAMPP ) - I'm not a coder at all so I really have no idea whats wrong - It was working fine when the site was online with a host.

    This is line 409:

    Code:
    if ($queryresult = $this->functions[$buffered ? 'query' : 'query_unbuffered']($this->sql, $link))

    Hope someone can help.

    Thanks a lot [​IMG]
     
    John D, Jul 8, 2017 IP
  2. JEET

    JEET Notable Member

    Messages:
    3,825
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #2
    I think you are not connected to the database.
    And trying to run a query
     
    JEET, Jul 11, 2017 IP
  3. John D

    John D Well-Known Member

    Messages:
    1,154
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    150
    #3
    Hey Jeet,

    Thanks for the reply.

    New host and once I changed the PHP version through cPanel, all sites worked.
    I had to go to an older PHP version.
     
    John D, Jul 11, 2017 IP
    JEET likes this.