[問題] 刪文出現錯誤[問題已解決]
發表於 : 2005-03-11 02:49
●架設主機作業系統:WindowsXp Pro
●快速架站程式:Appserv 2.4.3
●免費空間連結: 無\r
●您的上網方式:ADSL
●您安裝的程式:
●您的 phpBB2 版本:phpBB 2.0.13
●您的 domain(網域名稱) :hkleetw.ath.cx
●您的 phpBB2 連結網址: http://hkleetw.ath.cx/
●錯誤代碼:請使用 BBcode 標籤將錯誤代碼標註,範例如下(這是為了避免語法衝突):
代碼:
一般錯誤
●錯誤狀態:如果沒有錯誤代碼請直接貼出畫面掃描圖或是詳細敘述錯誤狀態內容。

Error in postingUPDATE phpbb_users SET user_posts = user_posts - 1 user_reply = user_reply WHERE user_id = 2
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 'user_reply = user_reply WHERE user_id = 2' at line 3
UPDATE phpbb_users SET user_posts = user_posts - 1 user_reply = user_reply WHERE user_id = 2
Line : 515
File : functions_post.php
而 functions_post.php 第515行為:
小弟將一些當初測試用的文章直接在文章的閱讀頁面中點選刪除,結果就出現如上圖的畫面,返回到首頁之後,該篇文章也是有被刪除掉了,但不知道是那邊出問題,
去爬文有發現類似的問題有發問過但都無人回覆解決的方法,所以小弟就斗膽再發一次請問有沒有哪位前輩知道該如何解決此問題呢??謝謝!!
●快速架站程式:Appserv 2.4.3
●免費空間連結: 無\r
●您的上網方式:ADSL
●您安裝的程式:
●您的 phpBB2 版本:phpBB 2.0.13
●您的 domain(網域名稱) :hkleetw.ath.cx
●您的 phpBB2 連結網址: http://hkleetw.ath.cx/
●錯誤代碼:請使用 BBcode 標籤將錯誤代碼標註,範例如下(這是為了避免語法衝突):
代碼:
一般錯誤
●錯誤狀態:如果沒有錯誤代碼請直接貼出畫面掃描圖或是詳細敘述錯誤狀態內容。
Error in postingUPDATE phpbb_users SET user_posts = user_posts - 1 user_reply = user_reply WHERE user_id = 2
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 'user_reply = user_reply WHERE user_id = 2' at line 3
UPDATE phpbb_users SET user_posts = user_posts - 1 user_reply = user_reply WHERE user_id = 2
Line : 515
File : functions_post.php
而 functions_post.php 第515行為:
代碼: 選擇全部
if (!$db->sql_query($sql, END_TRANSACTION)) [color=red]<---513行[/color]
{
message_die(GENERAL_ERROR, 'Error in posting' . $sql, '', __LINE__, __FILE__, $sql);[color=red]<---515行[/color]
}去爬文有發現類似的問題有發問過但都無人回覆解決的方法,所以小弟就斗膽再發一次請問有沒有哪位前輩知道該如何解決此問題呢??謝謝!!