Difference between revisions of "Example datanavigation rsp"
From Lianjapedia
Barrymavin (Talk | contribs) m |
Barrymavin (Talk | contribs) m |
||
Line 40: | Line 40: | ||
? "</tr>" | ? "</tr>" | ||
endscan | endscan | ||
+ | // close the table and the database | ||
use | use | ||
− | close | + | close database |
%> | %> | ||
</table> | </table> |
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 // close the table and the database use close database %> </table> </body> </html>