|
sentinel -> RE: Physically printing results (5/1/2008 11:13:34)
|
Rdouglass.... I was trying to use your new page style but am having some difficulty. I created a DRW that simply lists the users in my users table. Instead of getting one user per page i still get them all on it. Can you please take a look at my code and let me know where I am messing up? <html>
<head>
<title>user test</title>
<style>
<!--
.newPage
{
page-break-after: always;
}
-->
</style>
</head>
<body>
<!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<script type="text/javascript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</script>
<% end if %>
<%
fp_sQry="SELECT * from users"
fp_sDefault=""
fp_sNoRecords=""
fp_sDataConn="ncc"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes=""
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<div class="newPage">
<table>
<tr>
<td><%=FP_FieldHTML(fp_rs,"username")%> </td>
<td><%=FP_FieldHTML(fp_rs,"x_Firstname")%> </td>
<td><%=FP_FieldHTML(fp_rs,"x_Lastname")%> </td>
</tr></table>
</div>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
</body>
</html> Thanks!
|
|
|
|