1 頁 (共 1 頁)

[問題] po文章後會出現sql錯誤(function_post.php)

發表於 : 2005-11-24 18:53
ryanpisces
版本:2.0.18(phpbb)

風格:Skyblue


出現以下此訊息:

代碼: 選擇全部

一般錯誤
Error in posting

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 ''(11/23)士林雪岩燒聚餐\\', topic_type = 0 WHERE topic_id = 813'

UPDATE phpbb_topics SET topic_types = '[分享]', topic_title = '(11/23)士林雪岩燒聚餐\\', topic_type = 0 WHERE topic_id = 813

Line : 279
File : functions_post.php

我的論壇(帳密:guest)

我的functions_post.php檔

※請問各位大大我的論壇是哪裡出了問題><

Re: [問題] po文章後會出現sql錯誤(function_post.php)

發表於 : 2005-11-24 22:53
心靈捕手
ryanpisces 寫:版本:2.0.18(phpbb)

風格:Skyblue


出現以下此訊息:

代碼: 選擇全部

一般錯誤
Error in posting

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 ''(11/23)士林雪岩燒聚餐\\', topic_type = 0 WHERE topic_id = 813'

UPDATE phpbb_topics SET topic_types = '[分享]', topic_title = '(11/23)士林雪岩燒聚餐\\', topic_type = 0 WHERE topic_id = 813

Line : 279
File : functions_post.php

我的論壇(帳密:guest)

我的functions_post.php檔

※請問各位大大我的論壇是哪裡出了問題><
我猜想:
您的語系, 應該還是保留 big-5 編碼
因為您所遭遇的問題, 正是" 許功蓋" 所造成的錯誤

解決之道:
1. 將語系改用 utf-8 編碼
2. 或者, 參考這裡修改:
http://phpbb-tw.net/phpbb/viewtopic.php?t=37061

發表於 : 2005-11-25 13:18
appleboy
把網頁編碼全部改成utf-8

就沒問題了