GIF89a
<?php
include('config.php');
if($_REQUEST['action']=='position'){
$query = mysqli_query($con,"update ".$_REQUEST['tbl']." set position='$_REQUEST[pos]' where id='$_REQUEST[rowId]'");
if($query)echo 1;else echo 0;
}else if($_REQUEST['action']=='positionType'){
$query = mysqli_query($con,"update ".$_REQUEST['tbl']." set position='$_REQUEST[pos]' where menu_id='$_REQUEST[rowId]'");
if($query)echo 1;else echo 0;
}else header('location:/');
?>