info['admin']) { header('location: https://new-combats.com/'); exit(); } $itm = mysql_fetch_array( mysql_query('SELECT * FROM `items_main_data` WHERE `items_id` = ' . (int)$_GET['edit_item_data']) ); if (isset($itm['id'])) { if (isset($_POST['newdata'])) { mysql_query( 'UPDATE `items_main_data` SET `data` = "' . mysql_real_escape_string( $_POST['newdata'] ) . '" WHERE `id` = "' . mysql_real_escape_string($itm['id']) . '" LIMIT 1' ); die(''); } echo '
'; }