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

[eluser]alebenson[/eluser]
hi there!.. basic stuff here again
i cant understand this
i just want to read only 1 field of my DB... the content of the Image from some ID

here is what i am doing

Code:
$this->db->select('image');
$this->db->where('id', $id);
$JustTheImage = $this->db->get('post');

but by the whole things i've try to readit the only one that works is just a forech
a foreach for a single thing has no sense


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