Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text wrapping

Status
Not open for further replies.

dadms

Technical User
Joined
Mar 8, 2003
Messages
67
Location
US
when i retrieve data from the mysql database (text field)the text scrolls straight across the screen. Is there an easy way to have the text start at the next line when the end of the column is reached? Please let me know if you need more info.

this is the input text box
<tr>
<td align=&quot;center&quot; width=&quot;1&quot; VALIGN=&quot;TOP&quot;>
<p align=&quot;left&quot;><b>INFORMATION:</p>
<p> </b></td>
<td align=&quot;center&quot; width=&quot;1043&quot; colspan=&quot;4&quot;>
<p align=&quot;left&quot;>
<textarea name=&quot;information&quot; cols=&quot;80&quot; rows=&quot;8&quot; wrap=&quot;virtual&quot;>paste text here</textarea></td>
</tr>


php/html to output the information to a page
***note variable7=information field in db


<table width=&quot;100%&quot; border=&quot;0&quot; align=&quot;center&quot; style=&quot;border-left-width: 0; border-right-width: 0; border-top-width: 0&quot;>
<tr>
<td style=&quot;border-bottom-style: solid; border-bottom-width: 1&quot;>
<p align=&quot;center&quot;>RECORD SELECTED</td>
</tr>
</table>
<table width=&quot;100%&quot; border=&quot;0&quot; align=&quot;center&quot; style=&quot;border-left-width: 0; border-right-width: 0; border-top-width: 0&quot;>
<tr> <td><b>AUTHOR:</b></td>
<?php print (&quot;<td>$variable2</td>&quot;); ?>
</tr>
<tr>
</tr>
<tr> <td><b>DATE:</b></td>
<?php print (&quot;<td>$variable3</td>&quot;); ?>
</tr>
<tr>
</tr>
<tr> <td><b>CLLI:</b></td>
<?php print (&quot;<td>$variable4</td>&quot;); ?>
</tr>
<tr>
</tr>
<tr> <td><b>CATEGORY:</b></td>
<?php print (&quot;<td>$variable5</td>&quot;); ?>
</tr>
<tr>
</tr>
<tr> <td VALIGN=&quot;TOP&quot;><b>TITLE:</b></td>
<?php print (&quot;<td>$variable6</td>&quot;); ?>
</tr>
<tr>
</tr>
</table>
<table>
<tr> <td VALIGN=&quot;TOP&quot; width=&quot;20&quot;><b>INFORMATION:</b></td>
</tr>
<tr> <td></td>
<?php print (&quot;<td width='75%'><pre>$variable7</pre></td>&quot;); ?>
</tr>
<tr> <td VALIGN=&quot;TOP&quot;><b>LOGS:</b></td>
</tr>
<tr> <td></td>
<?php print (&quot;<td><pre>$variable8</pre></td>&quot;); ?>
</tr>
</table>
<table>
<table width=&quot;100%&quot; border=&quot;0&quot; align=&quot;center&quot; style=&quot;border-left-width: 0; border-right-width: 0; border-top-width: 0&quot;>
<hr></hr>
</table>
</body>
 
thank you very very very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top