session_start(); function er($e) { global $c; die('
Произошла ошибка: (c) '.$c[1].''.$e.'
$pl = mysql_fetch_array(mysql_query('SELECT * FROM `test_bot` WHERE `id` = "'.mysql_real_escape_string($_POST['id_bot']).'" LIMIT 1'));
if(isset($pl['id'])) {
if(isset($_GET['save'])) {
mysql_query('UPDATE `test_bot` SET
`login` = "'.mysql_real_escape_string($_POST['login']).'",
`obraz` = "'.mysql_real_escape_string($_POST['obraz']).'",
`level` = "'.mysql_real_escape_string($_POST['level']).'",
`sex` = "'.mysql_real_escape_string($_POST['sex']).'",
`name` = "'.mysql_real_escape_string($_POST['name']).'",
`agressor` = "'.mysql_real_escape_string($_POST['agressor']).'",
`expB` = "'.mysql_real_escape_string($_POST['expB']).'",
`stats` = "'.mysql_real_escape_string($_POST['stats']).'",
`itemsUse` = "'.mysql_real_escape_string($_POST['itemsUse']).'",
`p_items` = "'.mysql_real_escape_string($_POST['p_items']).'" WHERE `id` = "'.$pl['id'].'"
LIMIT 1');
$pl = mysql_fetch_array(mysql_query('SELECT * FROM `test_bot` WHERE `id` = "'.mysql_real_escape_string($_POST['id_bot']).'" LIMIT 1'));
}
?>
}elseif(isset($_POST['id_bot'])) {
echo 'Бот не найден';
}
?>