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
There's a PHP function that does this. See: http://www.php.net/wordwrap
Sig for a Day
Stephan Ahonen, ICQ 491101
"That's very funny Scotty, now beam down my clothes!"
Come back tomorrow for a different sig!
Backspace a single "s" to reply by email
--
PHP General Mailing List (http://www.php.ne
Nevermind,
I got it :-)
I used:
function wraptext($text,$warp) {
$text = explode(" ", $text);
$i = 0; $length = 0;
while ($i <= count($text)) {
$length += strlen($text[$i]);
if ($length <= $warp) {
$output .= $text[$i]." ";
3 matches
Mail list logo