开发者

MySQL query runs twice

I have an php file in which I include the PHP Simple HTML DOM Parser: include("simple_html_dom.php"); This inclusion makes my mysql_query($query) execute twice on my page - if I remove the inclusion , the mysql_query runs fine - I also tried to put the inclusion after开发者_运维技巧 the query - same problem!

mysql_query("INSERT INTO table (abc) VALUES ('ok8')");
echo "x";
include("simple_html_dom.php");

This results in 2 rows of my table but a single "x" in browser. (Also tried to put the echo before). Please, help!


Add a call to debug_print_backtrace() before mysql_query(). That will allow you to track the includes trail.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜