Home >Backend Development >PHP Tutorial >dede 留言模块一次加2条记录?该怎么解决

dede 留言模块一次加2条记录?该怎么解决

WBOY
WBOYOriginal
2016-06-13 10:45:551002browse

dede 留言模块一次加2条记录?
我改了一下DEDE 的留言模块也就是 guestbook.php

$query = "INSERT INTO `#@__guestbook`(uname,face,TEL,address,qq,Email,msg,dtime,ip)
  VALUES ('$uname','$face','$TEL','$address','$qq','$Email','$msg','$dtime','$ip'); ";  
 
  $dsql->ExecuteNoneQuery($query);


这样,可是为啥运行一次提交,会添加两条一模一样的记录?

------解决方案--------------------
程序断在这里。
你确定这个query方法只执行了一次??

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn