include('config.php');
mysqli_select_db($mysqli, "real");
if ($transaction == "Success" && $currency == "USD") {
$user_ids = '".$user_id."'; $total_cred = `user_credits` +'".$package_credits."';
$add = $mysqli->prepare("UPDATE `users` SET `user_credits` = ? WHERE `user_id` = ?");
$add->bind_param('si', $total_cred,$user_ids); $add->execute();
}
該代碼不會拋出任何錯誤,也不會更新數據庫。Mysqli更新命令不更新
難道你不認爲你的'$ total'說法有錯誤? – hjpotter92 2013-02-12 09:39:59
總積分=(已存入積分)+購買的新積分。 (''。$ package_credits。'')這是具有最近購買的學分的變量 – Shail 2013-02-12 09:42:32
這些表字段具有哪些數據類型? – hjpotter92 2013-02-12 09:44:06