On Friday 15 April 2005 11:46, Ng Hwee Hwee wrote: > 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?? Count the "\n" characters in the output. > > 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 -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436
Attachment:
pgppMKhAJZtRf.pgp
Description: PGP signature