Counting HTML Lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux