Jump to content

Recommended Posts

Hi, 

I'm by no means an expert in php but I use and continually try and figure out how to update some very old soccer stats scripts that break from time to time when newer versions of php are released.

Anyway, I would appreciate any pointers with this error please:

Warning: mysqli_query() expects parameter 3 to be integer, object given in /blah/blah/blah.php on line 81 

The code is:

79 -  mysqli_query($connection,"INSERT INTO seasons SET
80 -  SeasonID = '$seasonid',
81 -  SeasonPlayerID = '$player_id'",$connection)
82 -  or die(mysqli_error($connection));

Server is running php 7.2.28

Thanks in advance.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.