<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms5.7sp1评论添加字段的解决方法

时间:2020-12-09

dedecms5.7sp1评论添加字段的解决方法问题,问题得以解决:
实现方法如下:
1,后台:系统—SQL命令运行器 中输入:
alter table dede_feedback add column website varchar(20);
按确定执行即可。如果显示“执行一个命令”就说明添加成功了。
2,打开:feedback_ajax.php,找到:
include_once(DEDEINC.'/memberlogin.class.php');
$cfg_ml = new MemberLogin(
在其下面添加:
$website = cn_substrR($website,50);
3,找到:
$inquery = "INSERT INTO `cn_feedback`(`aid`,`typeid`,`username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`,`bad`,`good`,`ftype`,`face`,`msg`)
VALUES ('$aid','$typeid','$username','$arctitle','$ip','$ischeck','$dtime', '{$cfg_ml->M_ID}','0','0','$feedbacktype','$face','$msg'); ";
修改成:
$inquery = "INSERT INTO `cn_feedback`(`aid`,`typeid`,`username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`,`bad`,`good`,`ftype`,`face`,`msg`,`website`)
VALUES ('$aid','$typeid','$username','$arctitle','$ip','$ischeck','$dtime', '{$cfg_ml->M_ID}','0','0','$feedbacktype','$face','$msg','$website'); ";
4,打开ajaxfeedback.htm
在需要添加字段的位置添加
<label for="url">Website</label><input id="url" name="website" value="" size="30" type="text">
找到
myajax.AddKeyN('username', nusername);
下面添加;
myajax.AddKeyN('website', f.website.value);
注:这个有2处,分别在154行和248行!
0
首页
案例
关于
联系