Welcome Guest, Not a member yet? Register   Sign In
Displaying Single Results -- Stumped, but I know the answer is probably right in front of me =)
#6

[eluser]Kemik[/eluser]
I believe $query->result() returns an object and should be used as
Code:
foreach ($query->result() as $row) {

If you just want to return the first row try
Code:
$row = $query->row();

Or in your case
Code:
$data['question'] = $query->row();


Messages In This Thread
Displaying Single Results -- Stumped, but I know the answer is probably right in front of me =) - by El Forum - 02-03-2008, 12:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB