[thelist] Re:Forcing Page Breaks in PHP

eduardobk at via-rs.net eduardobk at via-rs.net
Fri Jan 31 04:31:01 CST 2003


--
I'd say CSS is the only way to force page breaks... I've looked for it
and didn't find any other solution besides CSS
http://www.w3.org/TR/CSS21/page.html
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/pagebreakbefore.asp

So just use like:
<code>
   <STYLE TYPE="text/css">
   P.BreakHere {page-break-before: always}
   </STYLE>

....
<P CLASS="BreakHere">
...
</code>

Eduardo Bacchi Kientz
http://www.noticiaslinux.com.br

-----------------
Message: 6
Date: Thu, 30 Jan 2003 13:53:44 -0500
To: thelist at lists.evolt.org
From: Atul Paul <atul79 at rogers.com>
Subject: [thelist] Forcing Page Breaks in PHP
Reply-To: thelist at lists.evolt.org

--
[ Picked text/plain from multipart/alternative ]
Hey,

I am running queries that return several results. However, I just wanna
print one result per page.
How do I do that in PHP? eg

while ($row = mysql_fetch_array($blah)) {
   // print whatever
   // page break
}

Is there a better way, say using CSS, that covers all browsers?

Thanks
Atul


My Blog: http://blog.verticalinsanity.com

--


--




More information about the thelist mailing list