[eluser]chefnelone[/eluser]
Hello,
I'm trying to get just a single value from a database table in a model method.
In my table I have fields named: 'image_name' and 'id_product'.
Then I try to the value of image_name where id_product = 15
I tried with: but the third line is wrong..
model_getData.php
Code:
$productImages = $this->db->get_where('products_images', array('id_product' => 15), '1');
$productImages = $productImages->result();
$miValue = $productImages -> image_name; //THIS IS WRONG
$this->firephp->log( $miValue );
What's the way to do this?