I'm retrieving some data out of mysql tables and populating a html table using an array. The problem I'm having is I have a column in my table called description and it can be up to 256 chars long. When php has a long description come into the array it really streches out my html table. I want it to wrap to the next line. I've been working with it all morning and don't like using the textarea tags. Anyone know how to do this? Should I use an array??? If so pleaz give a example.
Here's the array printing out to my table. It's the print with $row[4] in it.....
print "<td bgcolor=#$bg> <center>$row[0]</center> </td>
";
print "<td bgcolor=#$bg> <center>$row[1]</center> </td>
";
print "<td bgcolor=#$bg> <center>$row[2]</center> </td>
";
print "<td bgcolor=#$bg> <center>$row[3]</center> </td>
";
print "<td bgcolor=#$bg><textarea rows=2 border=0 width=150> $row[4] </textarea></td>
";
print "<td bgcolor=#$bg> <center>$$row[5] </center> </td>
";
print "<td bgcolor=#$bg> <p align=center><a href=$row[6] target=_blank><img border=0 src=$cam> </td>
";
print "</tr>";