view article on single page |
[eluser]v1rax[/eluser]
lets say i wanna view articles form the blog tutorial on a single page instead of all the articles being on one page.. how would i go about doing the query and displaying it on the page.. i understand how view and controller files work and stuff.. jus need some help with the actual code. eg. http://mydomain.com/index.php/articles/articleid thanks!
[eluser]Yorick Peterse[/eluser]
Fetch the article based on it's ID, which can be fetched from the URL
[eluser]v1rax[/eluser]
yeah i know.. but i'm just not too familiar with the way codeigniter does queries.. can u post a example ?
[eluser]Colin Williams[/eluser]
Lots of examples in the user guide, specifically the database section. Start there. |
Welcome Guest, Not a member yet? Register Sign In |