MySQL query is executed twice

I have a php file in which I include PHP Simple HTML DOM Parser: include("simple_html_dom.php"); This inclusion makes mine mysql_query($query)run twice on my page - if I remove the inclusion, it mysql_queryworks fine - I also tried to include the inclusion after the request - the same problem!

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

The result is 2 rows of my table, but one "x" in the browser. (Also tried to put echoearlier). Please, help!

+3
source share
1 answer

Add debug_print_backtrace () to mysql_query(). This will allow you to track your route.

+4
source

All Articles