Код 1:
Код: Выделить всё
$imdb_id = $this->db->get_where('videos', array('imdbid'))->result_array();
Код: Выделить всё
$imdb_id = $this->db->get('videos','imdbid');
Код: Выделить всё
$query = $this->db->query("SELECT * FROM videos;");
$row = $query->row(0, 'videos');
$imdb_id = $row['imdbid'];

Подробнее здесь: https://stackoverflow.com/questions/676 ... th-this-db
Мобильная версия