<table cellpadding="0" cellspacing="0"><tr><td class="btm">
<a href="galary.php?u=<?php echo $gal1rand; ?>"><img style="border:1px solid #FCCE92;" src="galary/litle/interier/<?php echo $gal1rand; ?>.jpg" alt="Интерьеры." /></a></td><td class="btm">
<a href="galary.php?u=<?php echo 1000 + $gal2rand; ?>"><img style="margin:0px 2px;border:1px solid #FCCE92;" src="galary/litle/fon/<?php echo intval(mysql_num_rows(mysql_query("select jobid from obd_8 where (jobid > 999) and (jobid < 2000)")) - 1); ?>.jpg" alt="Фон." /></a></td><td class="btm">
<a href="galary.php?u=<?php echo 2000 + $gal3rand; ?>"><img style="margin:0px 2px 0px 0px;border:1px solid #FCCE92;" src="galary/litle/other/<?php echo intval(mysql_num_rows(mysql_query("select jobid from obd_8 where (jobid > 1999) and (jobid < 3000)")) - 1); ?>.jpg" alt="Другое." /></a></td></tr></table>