Grazie mille per la risposta ma....
scusa l'ignoranza, così dovrebbe funzionare???


<script type="text/javascript" src="scripts/jquery.min.js"></script>

<script type="text/javascript" src="scripts/jquery.imgzoom.pack.js"></script>
<script type="text/javascript">
$(function () {<?php for($c=1;$c<=$cont;$c++){ echo "\$('#img$c').imgZoom({ showOverlay: true });";} ?>
// $('#img1').imgZoom({ showOverlay: true });
// $('#img2').imgZoom({ showOverlay: true, opacity: 0 });
$('#img3').imgZoom({ showOverlay: true, rotate: true, duration: 1000 });
});
</script>
</head>
<body>
<?php do { ?>
<div class="container demo">

<div style="float: left; width: 20%;">
<table width="100">
<tbody>

<tr>

<td width="147">
[img]<?php echo $dirname2.($row_allestimenti['foto2']); ?>[/img]" />


<?php echo $row_allestimenti['descrizione']; ?>
</td>

</tr>

</tbody>
</table>

</div>
</div>





</body>
</html>

<?php } while ($row_allestimenti = mysql_fetch_assoc($allestimenti)); ?>
<?php
mysql_free_result($allestimenti);
?>