$_GET['p'] = 'new_read'; include('../system/main_system.php'); //echo '<pre>'; var_dump($id2); echo '</pre>'; $new_them_id = array_pop($id2); $new_them_id++; $fp = fopen('../database/news.db', 'a'); fputs($fp, '[id]'.$new_them_id.'[/id]'."\r\n".'[name]'.$_POST['new_them_name'].'[/name]'."\r\n".'[content]'.$_POST['new_them_body'].'[/content]'."\r\n".'[date]'.date('d.m.y').'[/date]'."\r\n"); fclose($fp);