У меня есть две таблицы:
Код: Выделить всё
a) repository_notes
b) repository_noteupdates (this one is giving the problem)

http://imgur.com/GA6bn
Однако, когда я запрашиваю хранилище_заметок ниже:
Код: Выделить всё
print_r($this->db->get('repository_notes')->result_array());
Код: Выделить всё
Array
(
[0] => Array
(
[note_id] => 1
[note_title] => This is my note
[note_content] => Lorem ipsum dolor sit amet, consectetur adipiscing elit. In laoreet lobortis lacus, ac iaculis risus tristique nec. Curabitur porta gravida est, non tincidunt nunc porta nec. Nunc diam metus, feugiat non lobortis
[note_userId] => 2302
[note_pageno] => 12
[note_deleted] => 0
[note_bookid] => 12
)
[1] => Array
(
[note_id] => 2
[note_title] => This is my note
[note_content] => Lorem ipsum dolor sit amet, consectetur adipiscing elit. In laoreet lobortis lacus, ac iaculis risus tristique nec. Curabitur porta gravida est, non tincidunt nunc porta nec. Nunc diam metus, feugiat non lobortis
[note_userId] => 2302
[note_pageno] => 12
[note_deleted] => 0
[note_bookid] => 12
)
print_r($this->db->get('repository_noteupdates')->result_array());
Я не получаю результатов:
Код: Выделить всё
Array
(
)
Подробнее здесь: https://stackoverflow.com/questions/128 ... ar-tableun
Мобильная версия