Welcome Guest, Not a member yet? Register   Sign In
Best way to access data in a single-record query?
#1

[eluser]Unknown[/eluser]
Just getting into CodeIgniter with very little MVC experience, and some very rusty PHP experience from years ago.

To help me learn, I've set myself the task of building a simple discussion forum. I've built these in a couple of other languages a long time ago, so it's the programming project I'm probably most familiar with.

What I'm stuck on at the moment is this: what's the best way to access the information stored in a single-record query and pass the individual pieces of record info as variables to a View?

I'm just working on the 'thread' View of my forum - i.e. all the posts related to the current URI's thread_id number - and want to pass the thread title string explicitly to the 'thread' View when it's called (rather than passing a 'posts' query and a 'thread' query to the 'thread' View).

What's the best way to extract data from a single-record query and pass the pieces to a View, as described above?




Theme © iAndrew 2016 - Forum software by © MyBB