$sql = "select * from i_block_elements where version='kz' and active=1 and id_section=9 order by id_sort";
$res2 = $mysql->get($sql);
$i=1;
foreach ($res2 as $key => $r) {
?>
$i++;}?>