-3
我的問題是我無法將數據保存在數據庫中保存,這裏是代碼無法在數據庫
$database =& JFactory::getDBO();
$sql = "UPDATE #__comp_rate SET total = total + 1, point = point + $rate_d WHERE store='".intval($_GET['id'])."'";
echo $sql;
$database->setQuery($sql);
的部分回聲的結果是:
" point = point + 4 WHERE store='170'4"
它應該是:
"UPDATE jos_com_rate SET total = total + 1, point = point + 4 WHERE store='170'"
仍不能解決問題..這是有點奇怪.. – 2014-09-26 13:15:12
你能'回聲$ _GET [」 id']'並分享結果? – Mureinik 2014-09-26 13:16:15
什麼是'#__ comp_rate'?一個常數? – asprin 2014-09-26 13:16:16