Welcome Guest, Not a member yet? Register   Sign In
Easy Question - Comments_View and Showing Article
#5

[eluser]Pascal Kriete[/eluser]
You can add the id to the end of your url:

example.com/blog/comments/10

And it will then be passed into your controller function as an argument.

Code:
function comments($id)
{
    $query = $this->db->get_where('entries', array('id' => $id), 1, 0);
    $data['query'] = $query->row_array();
}


Messages In This Thread
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 03:38 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 03:58 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 04:01 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 04:32 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 04:48 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 04:49 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 04:52 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 04:56 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 04:59 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 05:00 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 05:07 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 05:09 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 05:13 PM
Easy Question - Comments_View and Showing Article - by El Forum - 04-20-2008, 05:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB