第 1 頁 (共 1 頁)
[問題]兌換功能+虛擬形象
發表於 : 2003-09-23 21:22
由 ym
安裝後如使用"虛擬形象 "登入銀行便出現以下訊息!是我的MySQL有問題嗎
http://phpbb-tw.net/phpbb/viewtopic.php?t=19509
代碼: 選擇全部
Could not query week9_userdata
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 'and dafaultuse = '1' and (face_fitherd = 'm' or face_fitherd =
SELECT * FROM week9_userdata where userid = and dafaultuse = '1' and (face_fitherd = 'm' or face_fitherd = 't')
Line : 158
File : c:\appserv\www\phpbb2\bank.php
注 : 如使用個人頭像是沒問題的,
又或是使用御津闇慈大大沒加上虛擬形象的銀行也可使用虛擬形象登入,
但只是沒圖片!
請幫忙:-(
Re: [問題]兌換功能+虛擬形象
發表於 : 2003-09-23 22:33
由 御津闇慈
ym 寫:安裝後如使用"虛擬形象 "登入銀行便出現以下訊息!是我的MySQL有問題嗎
http://phpbb-tw.net/phpbb/viewtopic.php?t=19509
代碼: 選擇全部
Could not query week9_userdata
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 'and dafaultuse = '1' and (face_fitherd = 'm' or face_fitherd =
SELECT * FROM week9_userdata where userid = and dafaultuse = '1' and (face_fitherd = 'm' or face_fitherd = 't')
Line : 158
File : c:\appserv\www\phpbb2\bank.php
注 : 如使用個人頭像是沒問題的,
又或是使用御津闇慈大大沒加上虛擬形象的銀行也可使用虛擬形象登入,
但只是沒圖片!
請幫忙:-(
是我漏掉兩個地方(最近真的有健忘症~"~)
打開bank.php
搜尋
代碼: 選擇全部
$sql="SELECT * FROM week9_userdata where userid = ".$postrow[$i]['user_id']." and dafaultuse = '1' and (face_fitherd = '$sex' or face_fitherd = 't')";
替換成
代碼: 選擇全部
$sql="SELECT * FROM week9_userdata where userid = ".$userdata['user_id']." and dafaultuse = '1' and (face_fitherd = '$sex' or face_fitherd = 't')";
搜尋
代碼: 選擇全部
$db->sql_query("UPDATE week9_userdata SET dafaultuse = '3' WHERE userid=".$postrow[$i]['user_id']." and facepicid = '$usercaifu[facepicid]' and classid= '$usercaifu[classid]' and dafaultuse='1'");
替換成
代碼: 選擇全部
$db->sql_query("UPDATE week9_userdata SET dafaultuse = '3' WHERE userid=".$userdata['user_id']." and facepicid = '$usercaifu[facepicid]' and classid= '$usercaifu[classid]' and dafaultuse='1'");
或者重新下載檔案
我已經更新了
發表於 : 2003-09-23 23:15
由 ym
現在是可進入銀行了,可惜虛擬形象沒出現!
是還有地方須修改嗎?御津闇慈大大加油喔
發表於 : 2003-09-23 23:20
由 御津闇慈
ym 寫:現在是可進入銀行了,可惜虛擬形象沒出現!
是還有地方須修改嗎?御津闇慈大大加油喔
這次應該沒問題才對@@
重新下載吧
發表於 : 2003-09-24 00:14
由 ym
同樣是不能的,還是空白一遍,我用滑鼠hightlight它是應有影像的!
可能只差一點點,我又不懂語法幫不上你....唉 sorry
發表於 : 2003-09-24 08:44
由 御津闇慈
ym 寫:
同樣是不能的,還是空白一遍,我用滑鼠hightlight它是應有影像的!
可能只差一點點,我又不懂語法幫不上你....唉 sorry
打開bank.php
搜尋
代碼: 選擇全部
$userwear = implode("-", $weararray);
更換為\r
代碼: 選擇全部
$userwear = implode("-", $cookiearray);
不然我真的不知道哪邊出錯了@@
發表於 : 2003-09-24 09:47
由 御津闇慈
已經搞定@@
請重新下載檔案
發表於 : 2003-09-24 18:57
由 ym
成功了......讚
所有問題已解!