![]() |
How to select posts followers in a blog application - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to select posts followers in a blog application (/showthread.php?tid=55574) |
How to select posts followers in a blog application - El Forum - 11-01-2012 [eluser]hkboateng[/eluser] I am doing a blog application and having problems generating the sql query to pull both the current users posts and followers posts. Database: Table Friends->f_username, user_friend, friendsid Post->postid, posts, posts_username Code from Model Code: public function get_posts() Code from Controller Code: $data['posts'] = $this->blog_model->users_post(); Code from View Code: <div id="user-posts"> Need help whether the fault is from the SQL query. |