mysql fetch array dönen tüm satırları vermez.
tek satır verir bırakır şöyle deneyin.
<?php
$qry =mysql_query("select resim_id,ekstraresim,urun_id from urunresim where urun_id=$id order by urun_id ");
while($data = mysql_fetch_array($qry)){
echo $data['ekstraresim'];
}
?>
Çok teşekkür ederim ilginiz için sorun çözülmüştür sağolun