Первый набор — это
Код: Выделить всё
$this->db->select('id');
$query = $this->db->get('user');
echo "
";
print_r( $query->result());
echo "";
Код: Выделить всё
Array
(
[0] => stdClass Object
(
[id] => 1
)
[1] => stdClass Object
(
[id] => 2
)
)
Код: Выделить всё
$this->db->select('user_id');
$query_two = $this->db->get('request_user');
echo "
";
print_r( $query_two->result());
echo "";
Код: Выделить всё
Array
(
[0] => stdClass Object
(
[user_id] => 1
)
)
Подробнее здесь: https://stackoverflow.com/questions/413 ... rent-array
Мобильная версия