[問題]能更改討論區啟用日期嗎?(已解決)
發表於 : 2004-08-19 07:03
因為我重新裝了2.0.10
只有備份了會員資料
這樣就變成會員註冊日期與討論區啟用日期不符合
不知道有沒有辦法更改討論區的啟用日期?
只有備份了會員資料
這樣就變成會員註冊日期與討論區啟用日期不符合
不知道有沒有辦法更改討論區的啟用日期?
代碼: 選擇全部
Could not delete group for this user
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 '' at line 2
DELETE FROM phpbb_groups WHERE group_id =
Line : 293
File : /home/phphost4/public_html/mordor/admin/admin_userlist.php代碼: 選擇全部
修改方法:
找到:
$sql = "DELETE FROM " . GROUPS_TABLE . "
WHERE group_id = " . $row['group_id'];
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
WHERE group_id = " . $row['group_id'];
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
}
改成:
if (intval($row['group_id']) > 0)
{
$sql = "DELETE FROM " . GROUPS_TABLE . "
WHERE group_id = " . $row['group_id'];
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
WHERE group_id = " . $row['group_id'];
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
}
}
這個錯誤應該也適用於其他版本相同的錯誤.