1 頁 (共 1 頁)

[問題] 薪資發放錯誤...已解決

發表於 : 2005-04-07 14:42
fenbaj2000
問題外掛:薪資發放
參考連結:
使用版本:phpBB 2.0.11
網站位置:
狀況描述:

後台沒問題但是討論區首頁無法開啟出現下面錯誤訊息!
Can`t updata user data

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE user_id = 2' at line 1

UPDATE phpbb_users SET user_money = user_money + WHERE user_id = 2
Line : 297
File : E:\Inetpub\vhosts\uatoysmall.com\httpdocs\phpbb2\index.php
------------------------------------------------------------------------------
我的虛擬幣格式是 user_cash

補充:
cash mod 2.2.2
薪資發放 Salary MOD 1.1.0

Re: [問題] 薪資發放錯誤

發表於 : 2005-04-07 15:11
心靈捕手
fenbaj2000 寫:問題外掛:薪資發放
參考連結:
使用版本:phpBB 2.0.11
網站位置:
狀況描述:

後台沒問題但是討論區首頁無法開啟出現下面錯誤訊息!
Can`t updata user data

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE user_id = 2' at line 1

UPDATE phpbb_users SET user_money = user_money + WHERE user_id = 2
Line : 297
File : E:\Inetpub\vhosts\uatoysmall.com\httpdocs\phpbb2\index.php
------------------------------------------------------------------------------
我的虛擬幣格式是 user_cash

補充:
cash mod 2.2.2
薪資發放 Salary MOD 1.1.0
上述的錯誤訊息, 已經有告訴您錯誤在哪裡了.
UPDATE phpbb_users SET user_money = user_money + WHERE user_id = 2
Line : 297
File : E:\Inetpub\vhosts\uatoysmall.com\httpdocs\phpbb2\index.php
依我看, 可能是您的 index.php 程式碼修正有誤.

建議您: 參考該外掛安裝說明,
關於 index.php 檔案的修正,
再重新審視一次.

發表於 : 2005-04-07 17:00
fenbaj2000
大大我已經有搜尋相關問題而且把其中一個狀況相同的問題的討論的方法修改\r
$sid= $salary[$i]['salary_id'];
$uid= $salary[$i]['user_id'];
$sm= $salary[$i]['user_money'];
改成
$sid= $salary[$i]['salary_id'];
$uid= $salary[$i]['user_id'];
$sm= $salary[$i]['salary_money'];
但還是一樣\r
^^`

發表於 : 2005-04-07 17:02
DL
應該是\r
$sid= $salary[$i]['salary_id'];
$uid= $salary[$i]['user_id'];
$sm= $salary[$i]['user_cash'];

真是無奈...是要改成你自己的金錢

發表於 : 2005-04-07 18:05
fenbaj2000
剛好修改好了!謝謝上面幾位大大的幫忙^^