Hey there,
Cool new layout, I havent been on here in ages. I need some help with a small project I was working on.
When ppl refresh the page really fast, or the page doesnt load all the way the second query isn't executed. This causes the tick not to be counted, which duplicates the entry. I can use it to add like 100+ entries for myself that aren't valid.
Hope Im making sense, here is the code.
mysql_query("INSERT INTO items (owner,itemid) VALUES ('$username','$finditem[itemid]')");
mysql_query("UPDATE store SET stocked = stocked - 1 WHERE itemid = '$finditem[itemid]' && owner = '$username'");
It doesnt take away one from being stocked, but puts more into the items table. Im sure there is a quick fix to this?
Thanks for checking out my problem,
-Dusk