Boosters in shop not working

09/17/2020 17:14 borsbence#16
this part is causing the problem, but unfortunately I couldn't fix the error either

Code:
$mysqli->query("UPDATE player_equipment SET boosters = '".json_encode($boosters)."' WHERE userId = ".$player['userId']."");
09/17/2020 18:20 Rushle#17
Quote:
Originally Posted by borsbence View Post
this part is causing the problem, but unfortunately I couldn't fix the error either

Code:
$mysqli->query("UPDATE player_equipment SET boosters = '".json_encode($boosters)."' WHERE userId = ".$player['userId']."");
Try replacing with this - Even tho it shouldn't really matter the change i did as you shouldn't have to insert the player id as a string
PHP Code:
$mysqli->query("UPDATE player_equipment SET boosters = '" .json_encode($boosters). "' WHERE userId = '" .$player['userId']. "'"); 
Otherwise var dump the query to debug the issue
09/17/2020 20:06 KnightCreeper023#18
I will try well and I would still like to ask another question.
How do I install this server I have on my VPS.

I have apacha,mysql and php.but i donīt connect to mysql.

And this code isnīt help or i add wrong :D

okay a try this your code but nothing change. In the emulator write same error.