Welcome Guest, Not a member yet? Register   Sign In
select ->row()?
#1

[eluser]anna16[/eluser]
Hi guys

I saw select codes but without row().
What is row()? doing in in this codes below,
$group_row = $this->db->select('name')
->where('id', $result->group_id)
->get($this->tables['groups'])
->row();

What is it's purpose?

Thanks in advanced.
#2

[eluser]InsiteFX[/eluser]
Hi anna,

It retrives the database table row, using the group_id.

InsiteFX
#3

[eluser]anna16[/eluser]
Ah okay.
It means it will select one row only in the table.
Unlike select without row, it will select as many as it can.

Okay it's clear now.

Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB