Its been a while since i learned php and kind of forgot how to get the url using the id & class .
Any idea how to get the $img = "url.jpg"
using the id (mainimage) from the site.
<img style="width:100%;" src="url.jpg" id="mainimage"/><div class="clearfix"></div>
Part 2
Also if there are more than one image in the same class e.g :
$thumb1 = "image_url1";
$thumb2 = "image_url2";
<div id="gallery"><a href="url/stock_img2/36536/1.jpg" class="gallary-tmb"><img src="url/stock_img2/36536/1.jpg" alt="TIIDA LATIO 15B" /></a><a href="url/stock_img2/36536/2.jpg" class="gallary-tmb"><img src="url/stock_img2/36536/2.jpg" alt="TIIDA LATIO 15B" /></a></div><div class="clearfix"></div>
</div>