Salve, ho questo code:
codice:
function draw_gallery($id)
{
global $gallery_dir;
$mysql = new DB;
$mysql->query("SELECT `id`, `event`, `comment`, DATE_FORMAT(tdate,'%d/%m/%Y') AS `fdate`, `place`, `directory` FROM `gallery` WHERE `id`='$id' LIMIT 1");
$mysql->next_record();
$id = $mysql->f('id');
$event = $mysql->f('event');
$date = $mysql->f('fdate');
$place = $mysql->f('place');
$comment = $mysql->f('comment');
$directory = $mysql->f('directory');
$html_comments = 'Data evento: '.$date.'
';
$html_comments .= 'Luogo: '.$place.'
';
$html_comments .= 'Numero foto: '.count_photo_gallery($id).'
';
$html_comments .= '<hr>';
$html_comments .= 'Commento:
';
$html_comments .= $comment . '
';
?>
<div align="center">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr colspan="3">
<td align="left" width="35" height="25" background="images/gallery/bg.gif">[img]images/gallery/left.gif[/img]</td>
<td align="right" height="25" background="images/gallery/bg.gif"><?=$event?></td>
<td align="right" height="12" heigth="25" background="images/gallery/bg.gif">[img]images/gallery/right.gif[/img]</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td align="left">[img]<?=$gallery_dir?>/<?=$directory?>/<?=get_random_pict($id)?>[/img]</td>
<td align="left"><?=$html_comments?></td>
</tr>
</table>
</div>
<?
}
http://www.baricity.it/index.php?mod=gallery
come potete vedere da quest'url, il testo al lato della foto è disallineato perchè di lunghezza diversa, avete idee su come posso risolvere?