[問題] Vault 無法更新股票總數及董事長名單

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
a97cck
星球普通子民
星球普通子民
文章: 8
註冊時間: 2004-08-16 22:43

[問題] Vault 無法更新股票總數及董事長名單

文章 a97cck »

問題外掛:Vault1.0
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=24523
使用版本:php BB 2.0.10
網站位置:http://plk2a.freelinuxhost.com/BB/index.php
狀況描述:
I have installed it and when I buy a stock,it shows

無法更新股票總數及董事長名單

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 stock_id = 1' at line 4

UPDATE phpbb_vault_exchange SET stock_total = 30 - 0, chairman = WHERE stock_id = 1

Line : 419
File : /home/www/plk2a.freelinuxhost.com/BB/vault.php


補充:
Cash Mod ,watched list mod ,flash cash mod and Vault1.0

I am looking forward for the help.Thx
a97cck
星球普通子民
星球普通子民
文章: 8
註冊時間: 2004-08-16 22:43

文章 a97cck »

Hey Please help!!!!!!!!!!!!!
please!
問題狂
竹貓忠實會員
竹貓忠實會員
文章: 1947
註冊時間: 2004-06-28 17:13

Re: [問題] Vault 無法更新股票總數及董事長名單

文章 問題狂 »

a97cck 寫:問題外掛:Vault1.0
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=24523
使用版本:php BB 2.0.10
網站位置:http://plk2a.freelinuxhost.com/BB/index.php
狀況描述:
I have installed it and when I buy a stock,it shows

無法更新股票總數及董事長名單

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 stock_id = 1' at line 4

UPDATE phpbb_vault_exchange SET stock_total = 30 - 0, chairman = WHERE stock_id = 1

Line : 419
File : /home/www/plk2a.freelinuxhost.com/BB/vault.php


補充:
Cash Mod ,watched list mod ,flash cash mod and Vault1.0

I am looking forward for the help.Thx
我也是..
按下後便出現此訊息..
是不是應為我把所有的"user_points"改成"user_money"的原因呢?
頭像
pc123
星球公民
星球公民
文章: 60
註冊時間: 2003-12-20 22:32
來自: 火星
聯繫:

文章 pc123 »

不是.........
是程式的問題...
我之前也裝過.
好像有人有解決的辦法...我用過.....
目前狀態:還是回不去火星.地球還是好危險.

----------------------------------------------------
●我的網站連結:倒了..
----------------------------------------------------
●我所使用的的linux版本:....火星專用版本.!!!???
●我所使用的的Freebsd版本:.5.4
----------------------------------------------------
問題狂
竹貓忠實會員
竹貓忠實會員
文章: 1947
註冊時間: 2004-06-28 17:13

文章 問題狂 »

可是搜尋沒找到..
t119_net
星球普通子民
星球普通子民
文章: 6
註冊時間: 2004-08-22 13:39

文章 t119_net »

change mode of root/cache/vault_config.php -> 666

i have similar error and now can run no problem...

good luck
a97cck
星球普通子民
星球普通子民
文章: 8
註冊時間: 2004-08-16 22:43

文章 a97cck »

thx for your help but i am that ther is no improvment....
t119_net
星球普通子民
星球普通子民
文章: 6
註冊時間: 2004-08-22 13:39

文章 t119_net »

just want to know ...

have you add new stock on it ??

I have the same problem again while add new stock...

but when i use the name of new stock without " " (space) then it seems ok.....

i think that is the program problem...

hope can help you...
t119_net
星球普通子民
星球普通子民
文章: 6
註冊時間: 2004-08-22 13:39

文章 t119_net »

finially found the error

but i don't know how to change the problem... sorry...

also it sometimes happen only...

the main point is the new stock..name and desc...

hope some strong programer can help...
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8525
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [問題] Vault 無法更新股票總數及董事長名單

文章 心靈捕手 »

a97cck 寫:問題外掛:Vault1.0
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=24523
使用版本:php BB 2.0.10
網站位置:http://plk2a.freelinuxhost.com/BB/index.php
狀況描述:
I have installed it and when I buy a stock,it shows

無法更新股票總數及董事長名單

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 stock_id = 1' at line 4

UPDATE phpbb_vault_exchange SET stock_total = 30 - 0, chairman = WHERE stock_id = 1

Line : 419
File : /home/www/plk2a.freelinuxhost.com/BB/vault.php


補充:
Cash Mod ,watched list mod ,flash cash mod and Vault1.0

I am looking forward for the help.Thx
(抱歉! 自爆)
最後由 心靈捕手 於 2006-03-11 12:30 編輯,總共編輯了 1 次。
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8525
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [問題] Vault 無法更新股票總數及董事長名單

文章 心靈捕手 »

心靈捕手 寫:(抱歉! 自爆)
除了這個修正之外, 建議再做以下的修正:
#
#-----[ OPEN ]-----
#
vault.php

#
#-----[ FIND ]-----
#

代碼: 選擇全部

		$tsql = "UPDATE " . VAULT_EXCHANGE_TABLE ."
			SET stock_total = ".$items[$i]['stock_total']." - $prize,
			    chairman = ".$chairman['user_id']."
			WHERE stock_id = ".$items[$i]['stock_id']; // 更新股票總數及董事長名單\r
#
#-----[ REPLACE WITH ]-----
#

代碼: 選擇全部

		$tsql = "UPDATE " . VAULT_EXCHANGE_TABLE ."
			SET stock_total = ".$items[$i]['stock_total']." - $prize,
			    chairman = ".$chairman['user_id']."
			WHERE stock_id = ".$items[$i]['stock_id'].""; // 更新股票總數及董事長名單\r
#
#-----[ SAVE & CLOSE ]-----
#
#EoM
ps.
真正會出現語法錯誤的原因, 應該是這裡才對! :oops:
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
主題已鎖定

回到「外掛問題討論」