Counting HTML Lines

From: Date: Fri, 15 Apr 2005 08:46:58 +0000
Subject: Counting HTML Lines
Groups: php.db 
Request: Send a blank email to php-db+get-39194@lists.php.net to get a copy of this message
Hi all, is there a way to count how many lines of screen output has HTML render? below is a sample of what i'm trying to do.. i'm trying to generate a table with the Remarks column containing data type TEXT which may have a few lines. therefore, i cannot just count how many rows of records i have. can someone please help me?? basically, i need to insert a page break at every 20 lines of screen output for printing purposes. can someone enlighten me on how i can read HTML rendered output?? thank you really really soooo much!!! ============================ <? ob_start(); ?> <html> <body> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="10%">Company Name</td> <td width="90%">Remarks</td> </tr> <? $query = "select * from T010Table where T010PrintDt = '0000-00-00'"; $result = mysql_query($query); while($T010 = mysql_fetch_array($result)) { ?> <tr> <td><? echo $T010["T010CoNm"]; ?></td> <td><pre><? echo $T010["T010Rmk"]; ?></pre></td> </tr> <? { ?> </table> </body> </html> <? ob_end_flush(); ?> ===================================== best regards, Hwee

« previous php.db (#39194) next »