function listorder($listorder)
{
global $db;
if(!is_array($listorder)) return FALSE;
foreach($listorder as $catid=>$value)
{
$value = intval($value);
$db->query("UPDATE ".TABLE_CATEGORY." SET listorder=$value WHERE catid=$catid");
}
return TRUE;
}
<input type="checkbox" name="listorder[<?=$list[region_id]?>]" value="1">