Hello, yes, for each level of weapon player need another item.
My code for upgrading working, I have just problem with checking inventory -> if player have the item what need for upgrade.
The query reading just first row, where player id = '$id'.
Weapon upgrade for level 2 working, because the first row is item 2, so the upgrade do sucessfuly.
But upgrade for level 3 or 4 not working, because the items is in row 2 and row 3, so then comes echo: you don't have item for upgrade!
If I delete item 2 from player invenotry database, the first row is item 3 and then upgrade for level 3 works.
I tried while, mysqli_fetch_all, mysqli_fetch_assoc but problem is still same, query still reading just first row.