avrei un problema...stupido ma un problema ehehe
allora io ho questo codice:
Codice PHP:
<?
while ($c = mysql_fetch_array($bbb)){ ?>
<tr bgcolor="silver">
<td align=center valign=top width=50><?=$c['data']?></td>
<td rowspan=2 align=center valign=top width=50><?=$c['user']?></td>
<?
if (($c['user'] == $_SESSION['user'])||($_SESSION['funz'] == "1")){
?>
<td rowspan=2 align=center valign=top width=50>[url="mod_mess.php?id=<?=$c['id']?>"]Modifica il messaggio[/url]</td>
<td rowspan=2 align=center valign=top width=50>[url="canc_mess.php?id=<?=$c['id']?>"]Cancella il messaggio[/url]
</td>
<td rowspan=2 vaglin=top align=center width=50><a href="vis_bach3.php?id=<?=$c['id']?>"><?
$c['msg'] = substr($c['msg'],0,20);
echo $c['msg'];
?></a></td>
</tr>
<?
}else {
?>
<td rowspan=2 vaglin=top align=center width=50>[url="vis_bach3.php?id=<?=$c['id']?>"]<?=$c['msg']?>[/url]</td>
</tr>
<?
}
}
?>
questo fa si che ogni messaggio che ricavo dal database venga incolonnato in una tabella
il problema è che non li mette in ordine verticale ma orizzontale...
in poche parole è come se non mi creasse una linea ad ogni record
come posso fare?