Welcome Guest, Not a member yet? Register   Sign In
how can i read just one field from a db table
#2

[eluser]xwero[/eluser]
you have to add
Code:
$result = $this->db->get('post');
$row = $result->row();
$row->image;
in php5 you can do
Code:
$this->db->select('image')->from('post')->where('id', $id)->get()->row()->image;


Messages In This Thread
how can i read just one field from a db table - by El Forum - 01-25-2008, 12:21 PM
how can i read just one field from a db table - by El Forum - 01-25-2008, 12:27 PM
how can i read just one field from a db table - by El Forum - 01-25-2008, 12:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB