[問題] 無法發表文章及回文
發表於 : 2005-10-07 23:28
●架設主機作業系統:Mandrake linux 10.1
●快速架站程式:mandrake內附的
●您的上網方式:SeedNet ADSL
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB 2.0.17
●您的 domain(網域名稱) :221.169.103.102 (這樣嗎?)
●您的 phpBB2 連結網址:http://221.169.103.102/~tw0517tw/phpBB2/
●錯誤代碼:
裝了[外掛] FlashPaint MOD / Flash 塗鴨後就這樣..
不知道為何post_id無法生成
phpBB2/includes/functions_post.php有修改的部份為\r
從//BeGiN到//END之間
●快速架站程式:mandrake內附的
●您的上網方式:SeedNet ADSL
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB 2.0.17
●您的 domain(網域名稱) :221.169.103.102 (這樣嗎?)
●您的 phpBB2 連結網址:http://221.169.103.102/~tw0517tw/phpBB2/
●錯誤代碼:
代碼: 選擇全部
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 ' '779fe2a29e', 'test', 'test', '')' at line 1
INSERT INTO phpbb_posts_text (post_id, bbcode_uid, post_subject, post_text, post_fpdata) VALUES (, '779fe2a29e', 'test', 'test', '')
Line : 273
File : functions_post.php
不知道為何post_id無法生成
phpBB2/includes/functions_post.php有修改的部份為\r
代碼: 選擇全部
// BEGIN: FLASH PAINT MOD
$sql = ($mode != 'editpost') ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, bbcode_uid, post_subject, post_text, post_fpdata) VALUES ($post_id, '$bbcode_uid', '$post_subject', '$post_message', '$fp_data')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject', post_fpdata='$fp_data' WHERE post_id = $post_id";
// END: FLASH PAINT MOD
if (!$db->sql_query($sql, BEGIN_TRANSACTION))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
if ($mode != 'editpost')
{
$post_id = $db->sql_nextid();
}