Difference between revisions of "Example datanavigation rsp"
From Lianjapedia
Barrymavin (Talk | contribs) m |
Barrymavin (Talk | contribs) m |
||
Line 16: | Line 16: | ||
? "<br>" | ? "<br>" | ||
− | // | + | // Open the table |
use customers | use customers | ||
− | |||
%> | %> | ||
<table> | <table> | ||
<tr> | <tr> | ||
<% | <% | ||
+ | // Display the table headings | ||
for i = 1 to fcount() | for i = 1 to fcount() | ||
? "<td>" + field(i) + "</td>" | ? "<td>" + field(i) + "</td>" | ||
Line 30: | Line 30: | ||
</tr> | </tr> | ||
<% | <% | ||
+ | // Display the data in a table | ||
scan | scan | ||
? "<tr valign='top'>" | ? "<tr valign='top'>" |
Revision as of 06:02, 3 September 2013
Name
example.rsp
Description
Example Visual FoxPro Server Page (.rsp).
Code
<%@ Language=VFP %> <html> <body> <% // Open the database open database southwind ? "<br>" // Open the table use customers %> <table> <tr> <% // Display the table headings for i = 1 to fcount() ? "<td>" + field(i) + "</td>" next %> </tr> <% // Display the data in a table scan ? "<tr valign='top'>" for i = 1 to fcount() ? "<td>" ? &(field(i)) ? "</td>" next ? "</tr>" endscan use close databases %> </table> </body> </html>