为什么这个查询不起作用?!?
错误
解析错误:语法错误,第 5 行 E:\xampp\htdocs\pf\shop\buy.php 中的意外 T_STRING
变量的示例信息
$character->islots = 20
$chatacter->name = [RE] Tizzle
$e2 = 10
功能
function increaseSlots($e2) {
$slots = ($character->islots)+($e2);
mysql_query('UPDATE `phaos_characters` SET `inventory_slots`="'.$slots.'" WHERE `name`="'.$character->name.'"'); // <-- Line 5
if (mysql_affected_rows() != 0) {
echo 'Inventory Size Incresed By '.$e2.' Slots';
}else{
echo mysql_error();
}
}