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

[eluser]chefnelone[/eluser]
you mean to replace:

Code:
$productImages = $productImages->result();

whith:

Code:
$productImages = $productImages->row();

I tried it, but still not working
Code:
$productImages = $this->db->get_where('products_images', array('id_product' => 15), '1');
$productImages = $productImages->row();
$productImages =  $productImages -> image_name;
$this->firephp->log( $productImages );



I also tried
Code:
$productImages = $this->db->get_where('products_images', array('id_product' => 15), '1');
$productImages = $productImages->result();
$productImages =  $productImages->row();
$this->firephp->log( $productImages );


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