I have a large number of records whcih will be printed as barcodes.
However ... with internet explorers printing system not being soo good i have had to space rows and cols correctly to match a page. this works for page one..
what i would like to do is view the records on a layed out page and have a printable page button... however this also needs to be paged? allowing printing of the current page.??
also setting of IE's print setup margins to 0mm all round if anyone knows how to do this? HTML margins are not the same.
<?php
require "../includes/dbconnect.php.inc";
require "../includes/header.php.inc";
print "<p class='text'>";
print "<h1>Library System</h1>";
print "View Barcodes";
print "</p>";
$query = "SELECT * FROM books";
$result = mysql_query($query);
print "<table border='1' cellpadding='10' bordercolor='#000000'><tr><td>Test</td><td>Test1</td></tr>";
while($row = mysql_fetch_array($result))
{
print "<tr><td class='text'><center><font face='code 3 de 9' size='300%'>";
echo "" . $row[0] . "";
print "</font><br>";
echo $row[0];
print "</td>";
print "<td class='text'>ISBN: ";
echo $row[1];
print "<br>Title: ";
echo $row[2];
print "<br>Author:";
echo $row[3];
print "</td></tr>";
}
?>
Thanks