Welcome Guest, Not a member yet? Register   Sign In
view article on single page
#1

[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! Smile
#2

[eluser]v1rax[/eluser]
bump
#3

[eluser]Yorick Peterse[/eluser]
Fetch the article based on it's ID, which can be fetched from the URL
#4

[eluser]v1rax[/eluser]
yeah i know.. but i'm just not too familiar with the way codeigniter does queries.. can u post a example ?
#5

[eluser]Colin Williams[/eluser]
Lots of examples in the user guide, specifically the database section. Start there.




Theme © iAndrew 2016 - Forum software by © MyBB