Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: httpwebwitch
One is to return the results in a record set, and then just use server side scripting to loop through them and add each one in the html.
The other option is to have the database return the results in XML format and use an xsl to display them.
What are the pros and cons of these methods and which is best from a speed/efficiency point of view?
- it is more expensive in terms of CPU/memory. (But not by that much)
- XSLT has a challenging learning curve
- dealing with data that contains escaped characters and text/html markup can be challenging (just make sure your test data contains lots of nasty tainted stuff, so your code handles it properly)