Welcome Guest, Not a member yet? Register   Sign In
Get only a value from table ?
#4

[eluser]danmontgomery[/eluser]
Code:
$productImages = $this->db->get_where('products_images', array('id_product' => 15), '1');
$productImages = $productImages->row();
$miValue =  $productImages->image_name;
$this->firephp->log( $miValue );

Is correct... If that's not working I would look at the query being generated, ensuring that it's returning a result and that it's returning the result you're expecting (the correct row and columns). It would also help if you were more specific than "not working".


Messages In This Thread
Get only a value from table ? - by El Forum - 03-03-2010, 06:18 AM
Get only a value from table ? - by El Forum - 03-03-2010, 06:22 AM
Get only a value from table ? - by El Forum - 03-03-2010, 07:08 AM
Get only a value from table ? - by El Forum - 03-03-2010, 03:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB