I want to select values from 2db.
image_db => id, image_adress, category, product_id;
product_db => id, name, price;
I want to select the images from a particular category and for each image the data of the product
what should i do?
this is correct?
$select = $image_model->select()
->where('category = ?',$category)->from(array('i'=>'image_db'),
array('adress','product_id'))->join(array('p'=>'product_db'), 'i.product_id'='p.id');