Ecco il codice completo:
- <style type="text/css">
.c<?php echo substr($row['foto'], 0, -4); ?>{
width: 40px;
background-image: url(images_photogallery/<?=$row['foto']?>);
background-repeat: no-repeat;
background-position: center;
}
</style>
<table width="10" height="10" border="0" cellpadding="5" cellspacing="0">
<tr>
<td class="c<?php echo substr($row['foto'], 0, -4); ?>"><a href="images_photogallery/<?=$row['foto']?>" rel="lightbox[roadtrip]">
[img]images/pixel_trasparente.gif[/img]</a></td>
</tr>
<tr>
<td align="center">
</td>
</tr>
</table>