$pullItem = mysql_query("SELECT * FROM items WHERE item_id = '$itemid'");
while ($fetch = mysql_fetch_array($pullItem)) {
$statinc = $fetch['statinc'];
}
$pullUserStats = mysql_query("SELECT * FROM userstats WHERE user_id = '$uid'");
while ($fetch = mysql_fetch_array($pullUserStats)) {
$curstat = $fetch[$statinc];
}
mysql_query("UPDATE userstats SET $statinc=('$curstat' + '$incamount') WHERE user_id='$uid'"); //LINE 76
这就是我遇到麻烦的地方。我之间确实有一些编码,但我的错误是:“注意:未定义的变量:curstat in ..... on line 76”