BBnepal-Accounts/account/application/controllers/AjaxDrag.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

9 lines
206 B
PHP

<?php
$position = $_POST['position'];
$i=1;
foreach($position as $k=>$v){
$sql = "Update tbl_studyabroads SET display_order=".$i." WHERE studyabroad_id=".$v;
return $this->db->query($sql);
$i++;
}