Ok, PMA gave me this error from console
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'itemlvl']','$data['minwdmg']','$data['maxwdmg']','$data['statAR']','$data['statt' at line 4
INSERT INTO items(
playername,
itemtype,
quality,
itemlvl,
minwdmg,
maxwdmg,
ar,
statt1,
stat1,
statt2,
stat2
)
VALUES (
'$playername', '$itemtype', '$quality', '$data['itemlvl ']', '$data['minwdmg ']', '$data['maxwdmg ']', '$data['statAR ']', '$data['statt1 ']', '$data['stat1 ']', '$data['statt2 ']', '$data['stat2 ']'
)
It probably has problems with array data. I'm not sure how to use it or even if I can use it in this case, but myb I should use extract() function?