andrey69rus,
mysql_query(\"DELETE FROM `duel_add` WHERE `id`=\'\".$duelee[\'id\'].\"\'\"
;
mysql_query(\"INSERT INTO `battle`(`x`,`y`,`x1`,`x2`)VALUES(\'\".$account[\'x\'].\"\',\'\".$account[\'y\'].\"\',\'\".$account[\'x1\'].\"\',\'\".$account[\'y1\'].\"\')\"
;
$batele=mysql_insert_id();
echo \'<div class=\"mesg\">Тест \'.$batele.\'</div>\';
mysql_query(\"UPDATE `account` SET `duel_battle`=\'\".$batele.\"\',`battle_attack`=\'\".$duelee[\'user\'].\"\',`battle_target_type`=\'user\' WHERE `id`=\'\".$account[\'id\'].\"\'\"
;
mysql_query(\"UPDATE `account` SET `duel_battle`=\'\".$batele.\"\',`battle_attack`=\'\".$account[\'id\'].\"\',`battle_target_type`=\'user\' WHERE `id`=\'\".$duelee[\'user\'].\"\'\"
;