Código PHP:
require ("../includes/Db.class.php");
require ("../includes/Conf.class.php");
$bd=Db::getInstance();
$fin=$_GET['b'];;
$principio=$_GET['a'];;
$_GET['0'];
$_GET['1'];
$_GET['2'];
$_GET['3'];
$_GET['4'];
$_GET['5'];
$_GET['6'];
$_GET['7'];
$_GET['8'];
$_GET['9'];
$_GET['10'];
$i = $principio;
$consulta2 = "SELECT n_edit_index_sec, s_edit_menu FROM tb_web_admin_edit LIMIT $principio,$fin";
$consul = mysql_query($consulta2) or die(mysql_error());
$data1 = array();
while($d = mysql_fetch_array($consul)){
$data1[$d['n_edit_index_sec']] = $d['s_edit_menu'];
mysql_query("UPDATE tb_web_admin_edit SET s_edit_menu='".$_GET[$i]."' WHERE n_edit_index_sec='".$d['n_edit_index_sec']."'");
$i++;
}
$i="";
$principio="";
$fin="";
header("Location: editor.select.php");