Welcome Guest, Not a member yet? Register   Sign In
Get Images of an Article
#7

If you use IDs or slugs that match product, you don't actually have to join it with product table, because you already got product details with singleproduct() method.

Depending how much data you have in product table, with your original query, for every image you also get all the product details.

You could do something like this and only get image data:
PHP Code:
$bringimages $this->db->select('*')
    ->
where('imageproductslug'$productslug);
    ->
db->get('gallery'); 
Reply


Messages In This Thread
Get Images of an Article - by demyr - 09-16-2018, 06:07 AM
RE: Get Images of an Article - by jreklund - 09-16-2018, 09:46 AM
RE: Get Images of an Article - by demyr - 09-16-2018, 10:45 PM
RE: Get Images of an Article - by php_rocs - 09-17-2018, 07:49 AM
RE: Get Images of an Article - by Wouter60 - 09-17-2018, 08:42 AM
RE: Get Images of an Article - by demyr - 09-27-2018, 12:47 AM
RE: Get Images of an Article - by Pertti - 09-27-2018, 01:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB