model
public function get_single( $table , $where ) { $this->db->where( $where ); $q = $this->db->get( $table ); return $q->row(); }
controller
$data['blog'] = $this->panel_m->get('blog', FALSE, FALSE, 'date', 'desc'); $articles_id = $this->panel_m->get_single('articles_categories', $where); $categories_id = $this->panel_m->get_single('articles_categories', $where);
widok
<?php foreach($blog as $row): ?> <tr> <td>wybrana kategoria<?php </tr> <?php endforeach; ?>
http://test11200.futurehost.pl/plik.jpg
nie ma pomysłu jak pobrać daną kategorię
po jeśli
$articles_id
jest równe
$categories_id
to już mamy połowe sukcesu tylko dalej nie wiem jak , z tym że w widoku wyświelta mi że nie zdefiniowana zmienna id