I get the image names by a query (below). But how can I ensure/find the images paths of product images? I know images are saved under the folder “\images\detailed\2” after 1000 images uploaded under the path “\images\detailed\1”. (defined in config.local.php) which directory did images saved? under “1” or “2”? How to know this?
<br />
//images db<br />
$data= db_get_array("SELECT ?:images.image_path, ?:images_links.type FROM ?:images ".<br />
"LEFT JOIN ?:images_links ON ?:images_links.detailed_id = ?:images.image_id ".<br />
"WHERE ?:images_links.object_id = ?s", $product['product_id']);<br />
```<br />
<br />
I found the way how to to get image paths. I can get the URL of main image of product, but I couldn't find what code should I write for getting additional image urls of the product. Here is the code part.??? <img src="upload://n4syhXZrRhsStKvmS4jT3Mp2S3k.png" class="bbc_emoticon" alt=":("><br />
<br />
<br />
```php
<br />
foreach ($data as $k => $v) {<br />
<br />
$images = fn_get_image_pairs($product['product_id'], 'product', $v['type'], false, true, $lang_code);<br />
<br />
if ($v['type'] == 'M') {<br />
$data[$k]['image_url'] = $images['detailed']['image_path'];<br />
}<br />
<br />
if ($v['type'] == 'A') {<br />
$data[$k]['image_url] = // ??????????????????<br />
<br />
}<br />
<br />
fn_print_r($data[$k]);<br />
<br />
}<br />
<br />