Going to be harsh here but your current efforts are very bad. In fact out of a lot of the poor attempts at releasing a game that I have witnessed on this forum yours is the worst.
Just having free and purchased mods in no way makes your game interesting or playable.
I would suggest unless this is purely going to be for yourself and close friends and family to play that you sit and re-think about it.
Yeah I apologize to stevenrfc I would fix this up for you but mcc has had enough free support from the community here and as Ian has a bad attitude then its up to them to fix it.
This has been a issue in redux from day 1 and I am pretty sure that they dont provide fixes apart from by support ticket (so nobody else has the fix which is a bit silly if you ask me)
I do believe its against forum rules isnt it? text speak.
It doesnt take long to spell check and correct your text before you click the post button.
Booher im getting old but not as old as illusions ;)
Your using a pretty old mc2 version with that code there. Why dont you download the latest?
If your not aware of the security or lack of it with the code you posted PHPDevil then you should go read up on it. Basic PHP as David has pointed out.
Your issue is this $r[itmid 123'], $r['imQTY 1']
Not how it works your dont specify the itemid and qty there as its already been done in the query before that
item_add($userid, $r['itemid], $r['imQTY']);
Is all you require for the function.