In article <05d201c0a069$4877e0c0$[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] ("Clayton Dukes") wrote:

> $row = mysql fetch array($sth);
> 
>   if ($row[0] != "") {
>       echo $row[0];
> 
> prints the data, but some of the results are long strings of text that don't 
> wrap in the browser, how can I force them to wrap at the edge of the browser?

You already discovered the wordwrap() solution.  The html solution looks 
like this:

if ($row[0] != "") {
     echo "<p>$row[0]</p>";

Cheers!

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to