hi! thanx for your reply. i cannot count the number of "\n" because sometimes the inputted text is very long without any "\n", but because it is inside a cell that has a linited width, HTML will automatically push it to the next line, right? in this case, there won't be a count for "\n". hwee ----- Original Message ----- From: "Petar Nedyalkov" <bu@xxxxxxxxxx> To: <php-db@xxxxxxxxxxxxx> Sent: Friday, April 15, 2005 5:06 PM Subject: Re: Counting HTML Lines Count the "\n" characters in the output. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php