lak Posted November 12, 2007 Share Posted November 12, 2007 hi,i ve designed one page, its reg. billing software. In that there is no problem in database. Now the problem is "disalignment". When i run that page, that page was displayed with disalignment.As i m new to this job, i m not able to find way.Another pblm is, while taking print out that displayed page" i got some extra texts, i think its from server or database. Those extra texts are"page 1 0f 1 " & "current date" & and the url. How to solve the above problems? Link to comment Share on other sites More sharing options...
Synook Posted November 12, 2007 Share Posted November 12, 2007 As I said in the PHP forum, posting some code will "help us to help you" Link to comment Share on other sites More sharing options...
lak Posted November 12, 2007 Author Share Posted November 12, 2007 As I said in the PHP forum, posting some code will "help us to help you" this is the coding:<table width="650" height="495" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="9"><form action="../../billofexchange/word1.php" method="post"> <div align="center"></div> </form></td> </tr> <tr> <td height="125" colspan="9"><div align="left"><img src="ScannedImage12-NEW.jpg" width="650" height="103" /><br /> </div></td> </tr> <tr> <td height="9" colspan="3"><div align="center"><span class="style5 style1" style="text-decoration:underline"><strong>BILL OF EXCHANGE</strong></span> <?php $string = $row['billno'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?> </div></td> </tr> <tr> <td height="10" colspan="3"> </td> </tr> <tr> <td width="374" height="1">This bill of exchange is drawn under invoice No. <?php $string = $row['invoicenumber'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?></td> <td width="125">dated <?php $string = $row['predate']; $token = strtok($string,","); while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?></td> <td width="151">for Rs.<?php $string = $row['invoiceamount'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?></td> </tr> <tr> <td height="1" colspan="3"> </td> </tr> <tr> <td height="2" colspan="3"><span class="style7">To</span></td> </tr> <tr> <td height="5" colspan="3"> </td> </tr> <tr> <td height="10" colspan="3"><?php $string = $row['address'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?></td> </tr> <tr> <td height="19" colspan="3"> </td> </tr> <tr> <td height="1" colspan="3"><span class="style2">Amount - Rs.</span> <?php $string = $row['invoiceamount'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?></td> </tr> <tr> <td height="19" colspan="3" valign="middle"> </td> </tr> <tr> <td height="19" colspan="3"><div align="center">Due Date : <?php $string = $row['duedate'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?></div></td> </tr> <tr><td height="17" colspan="3"><table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"> </td> </tr> <tr> <td width="106">At <?php $string = $row['duedays1'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?></td> <td width="84">( <?php $string = $row['dueday'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?>)</td> <td width="460"> days from date of this bill of exchange, (including days of grace, if </td> </tr> <tr> <td colspan="3"> any) pay to Indian Bank, Royapettah Branch. Or order the sum of Rupees <strong> <?php $string = $row['rupee'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?> </strong></td> </tr> <tr> <td colspan="3"><div align="right"> <table width="319" border="0" cellspacing="0" cellpadding="0"> <tr> <td>for value received. </td> </tr> </table> </div></td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3">This bill of exchange is drawn in connection with the sale of goods to you by us as per the </td> </tr> <tr> <td colspan="3"> following invoice:</td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"><table width="650" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="311">INVOICE NO: <?php $string = $row['invoicenumber'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?></td> <td width="339"><div align="center">INVOICE DATE : <?php $string = $row['invoicedate'];$token = strtok($string,"");while ($token !== false) { echo "$token<br />"; $token = strtok(","); }?> </div></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2">INVOICE AMOUNT <strong>:</strong> <?php $string = $row['invoiceamount'];$token = strtok($string,",");while ($token !== false) { echo "$token<br />"; $token = strtok(""); }?></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td><div align="left">For Drawer</div></td> <td><div align="right">ACCEPTED FOR PAYMENT </div></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td><div align="left">Authorised Siognatory </div></td> <td><div align="center"> Authorised Siognatory </div></td> </tr> <tr> <td colspan="2"> </td> </tr> </table></td> </tr> </table></td> </tr></table> Link to comment Share on other sites More sharing options...
jesh Posted November 12, 2007 Share Posted November 12, 2007 Another pblm is, while taking print out that displayed page" i got some extra texts, i think its from server or database. Those extra texts are"page 1 0f 1 " & "current date" & and the url.I don't know what you're looking for in your first problem, but, for the second, that information is coming from your browser. In IE, you can change that by choosing "File -> Page Setup..." from the menu and modifying or clearing out the "Header" and "Footer" fields. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.