1 頁 (共 1 頁)

[問題]Codecrush IP Log0.2.6的問題

發表於 : 2003-07-29 21:16
天霜
當我裝完Codecrush IP Log0.2.6後
按下在系統管理控制台中IP Log的Show IP Log

出現\r

代碼: 選擇全部

一般錯誤 
Could not select current user_ip IP list

DEBUG MODE

SQL Error : 1146 Table 'php.cc_ip_log' doesn't exist

SELECT user_ip FROM cc_ip_log GROUP BY user_ip ORDER BY user_ip ASC

Line : 114
File : C:\Inetpub\wwwroot\phpthb\admin\admin_ip_log.php 

admin_ip_log.php的114上下10行

代碼: 選擇全部

	//
	// Generate the ip select-list
	//
	$sql = "SELECT user_ip 
		FROM cc_ip_log 
		GROUP BY user_ip 
		ORDER BY user_ip ASC";
	if ( !($result = $db->sql_query($sql)) )
	{
		[color=red]message_die(GENERAL_ERROR, 'Could not select current user_ip IP list', '', __LINE__, __FILE__, $sql);[/color]
	}

	$ip_list_fetch = $db->sql_fetchrowset($result);
	$db->sql_freeresult($result);

	$select_iplist = '';
	for($i = 0; $i < count($ip_list_fetch); $i++)
	{
		$select_iplist .= '<option value="' . $ip_list_fetch[$i]['user_ip'] . '">' . decode_ip($ip_list_fetch[$i]['user_ip']) . '</option>';
	}
請問要如何修改?紅色為第114行

發表於 : 2003-07-30 06:56
Mac
SQL Error : 1146 Table 'php.cc_ip_log' doesn't exist
=> 'php.cc_ip_log' 資料表不存在... 所以無法進行你想要的動作

~Mac

發表於 : 2003-07-30 10:08
天霜
是要我建立資料表嗎?
請問該如何做?

發表於 : 2003-07-30 13:12
動感超人
這個mod安裝時有沒有要加入的SQL?
如果有,要用phpmyadmin加入喔...

-----------------------------------------------------------------------------
提醒一下:發問時請用格式發問...不然大家會搞不清楚...就沒辦法幫您了
畢竟並不是所有的人都用過這支mod...