开发者

MySQL query runs twice

开发者 https://www.devze.com 2023-03-11 12:12 出处:网络
I have an php file in which I include the PHP Simple HTML DOM Parser: include(\"simple_html_dom.php\");

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

精彩评论

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

关注公众号