ciao.. ho questa tabella dove scrivo commenti... non riesco a mandare a capo il testo...
cioè se la tabella è larga table width="300" vorrei che il testo andasse a capo dopo 300 px... come faccio?
grazie
Codice PHP:
<? //mostro la guestbook
$sql="SELECT * FROM guestbook ORDER BY id DESC LIMIT $start,$prendi";
$result=mysql_query($sql);
echo '<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="">';
while($rows=mysql_fetch_array($result)){
?>
<tr>
<td><? echo $rows['name']; ?> il <? echo $rows['datetime']; ?> ha scritto: <ul><? echo $rows['comment']; ?>[/list]</td>
</tr>
<?
}
if(mysql_num_rows($result)==0){
?>
<tr>
<td>nessun commento!</td>
</tr>
<?php
}
echo '</table>';