Hi
I want display all images based on Item ID, e.g = 1000;
This query do it (almost):
$query = $conn->osc_dbFetchResult("SELECT s_path, pk_i_id, s_extension FROM /*TABLE_PREFIX*/_t_item_resource WHERE fk_i_item_id = 1000 );
//path to image in admin
$img_path = $query['s_path']. $query['pk_i_id']. $query['s_extension'];
Almost, because if Item has more than 1 photo, it return the fist one, but not all!
How to rebuild this query to get all photos?