HI guys,
i've done this paging using pdf, but my printer is EPSON DOT MATRIX..
so i want to print it as a text page. my problem is how page break result from a database and same heading on the next page..
Here is my code, can you do it for me, tnx..
<?php
$mysql_query...
?>
<html>
<head>
</head>
<body>
<p align = "left"><a href="#" onClick="self.print();"><img src="../../images/print2.png"></p>
<table width="100%" border="0" align="left" cellspacing="0" cellpadding="0" >
<tr>
<td align="center" colspan="3">
<span><?php echo $headr[0]; ?></span><br /><?php echo $headr[1]; ?><br />
</td>
</tr>
<tr>
<td colspan="3" align="center" > </td>
</tr>
<tr>
<td colspan="3" align="center">LIST OF ALL <?php echo $ctct_type; ?></td>
</tr>
</table>
<table align = "left" border ="0" width="" cellspacing="0" cellpadding="3">
<tr>
<td colspan="5"><div style="border-bottom: solid 1px black;" ></div></td>
</tr>
<tr>
<td align="center" style="font-weight:bold;">Branch</td>
<td align="center" style="font-weight:bold;" width="10%">Contact ID</td>
<td align="left" style="font-weight:bold;">Contact Name</td>
<td align="left" style="font-weight:bold;">Address</td>
<td align="center" style="font-weight:bold;">Salesperson</td>
</tr>
<tr>
<td colspan="5"><div style="border-bottom: solid 1px black;" ></div></td>
</tr>
<?php
while(list($contact_branch, $contact_id, $name, $parent_contact, $tmp_addr1 ) = mysql_fetch_array($sqm))
{
echo '<tr>
<td align="center" >' . $contact_branch . '</td>
<td align="center" >' . $contact_id . '</td>
<td align="left">' . $name . '</td>
<td align="left">' . $tmp_addr1 . '</td>
<td align="center" >' . $parent_contact . ' </td>
</tr>';
}
?>
</table>
</body
</html>