本帖最后由 guokeivy 于 2010-02-03 11:20 编辑
不能删除的解决方法:
打开文件(admin/admincp_farm.php)找到这几行
$_SGLOBAL['db']->query("DELETE FROM ".tname('happyfarm_config')." WHERE uid=".$id);
$_SGLOBAL['db']->query("DELETE FROM ".tname('happyfarm_nc')." WHERE uid=".$id);
$_SGLOBAL['db']->query("DELETE FROM ".tname('happyfarm_mc')." WHERE uid=".$id);
$_SGLOBAL['db']->query("DELETE FROM ".tname('happyfarm_mclogs')." WHERE uid=".$id);
showmessage('删除UID为'.$id.'的用户的农牧场成功', 'admincp.php?ac=farm');
将WHERE WHERE uid=".$uid);改为WHERE uid=".$id);
------------------------------------------------------------------------------------------------
不能显示用户名解决,
打开文 件admin/admincp_farm.php找到这行大概在75行左右
将$query = $_SGLOBAL['db']->query("SELECT sf.*, s.*,c.exp as exp1,c.reclaim,d.exp as exp2 FROM (((".tname('happyfarm_config')." s
更改为:
$query = $_SGLOBAL['db']->query("SELECT s.*, sf.*,c.exp as exp1,c.reclaim,d.exp as exp2 FROM (((".tname('happyfarm_config')." s
小小宇的happyfarm_config 里面其实多写了个字段username ,因为这个是空的,没插入,所以把s.*和sf.*掉个头就好了!
以下内容回复可见! |