473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Priniting with headers repeated on the next page and page breaks

110 100+
I have printing program in php and html
where the php varaibles have been echoed in the tabular format
and this table has heading whch should come on evry page now how do i asertain when there will be page break and and heading repeated again

something like this(part of code)
[PHP]<table>
<tr>
<td><strong><em>Material</em></strong></td>
<td><strong><em>Received Qty</em></strong></td>
</tr>
<? while($cn<=$m){
<tr>
<td><input type='hidden' name='material' value='<?=$material?'>><?=$material?></td>
<td><input type='hidden' name='recqty' value='<?=$rec_qty?>'><?$rec_qty?></td></tr>

<? $m++;
} ?>[/PHP]
//this is a part of code now his shows the material but once material list exceed next page no header is dispalyed
//how to do this


Thanks in advance
Apr 25 '08 #1
1 1409
ronverdonk
4,258 Expert 4TB
PHP does not do any printing, it is a server side script language and cannot print to a client spool. You use the JavaScript print function for that, or the print button of your browser.

What you need to do is to count the number of table entries you want to be displayed on each page-to-print and, when that count has been reached, create a page eject, show the table header lines and start counting again.

Ronald
May 5 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jane Withnolastname | last post by:
I have seen many posts here eschewing the use of META tags, advising instead to use http headers. I have no idea what they are or how to get to them, so I would appreciate some help. My...
2
by: Rupe | last post by:
Hi CSS gurus! I have an embarassing problem. I am a php programmer and I try to expound the advantages of css on the php newsgroups. However, after telling someone that they should use css...
71
by: Christopher Benson-Manica | last post by:
At what point was the .h dropped from the STL headers? I just had a discussion yesterday with my boss, who said he wanted .h on all the STL includes, despite me protesting that it was not...
3
by: John M | last post by:
Hi, I must be missing something blindingly obvious. If I don't want a page header to appear on a report header I set 'Not with Rpt Hdr/Ftr' in the report. But I don't want the Page Header...
0
by: Robert Walter | last post by:
I was looking for a method to repeat the headers on an ASP.NET Repeater control. I couldn't find quite what I wanted on the web so I implemented it myself. I thought it maybe useful for some of you...
2
by: gh0st54 | last post by:
hi still working on changing my data grid headers using resource files the thing is i always gat a count of 0 for my datagrid columns count, when will i get the columns count and when should i...
0
by: simon.hudon | last post by:
Hi everyone, I have a strange problem with precompiled headers with VC8. I have the problem while trying to use a precompiled header to build another precompiled header. I tried the sample...
7
by: Evan Camilleri | last post by:
I have a datagrid with headers. I managed to 'freeze' the headers OK and then one can scroll to see contents. I would like to be able to print this list by re-prinitng the headers on each page....
22
by: Platero | last post by:
Hi, I've a stupid question but... The code is the following: if(($role!='tutor')&&(array_key_exists('tutor_id',$_GET))) { $possible_ids = array(2,6,7,8,9,10); $t_id = $_GET;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.