9 lines
206 B
PHP
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++;
|
||
|
}
|