halojoy thanks again. Yes, I tried with "exit" but it doesn't help.
The file is designed in this way:
<?php
include_once 'funkcions.inc.php';
include_once 'language.php';
include_once 'header.php';
opentable();
switch($do) {
default:
.....................
break;
case "showarticles":
......................
break;
case "deletearticle":
.......................
break;
}
closetable();
include_once 'footer.php';
?>
So, I don't understand how it can continue to run because at the end of "case" it closes table and includes footer.php. That's all - nothing to run. How can it execute twice? As I wrote in my other thread about redirecting, the error happends even if I remove any "redirects" from the script.
bradgrafelman, I can rewrite it more sensibly. Maybe that's the problem because I don't see this error in scripts which are written in this way:
$result=mysql_query(...