HTML DBScript can be used to add the results of database queries to your webpages. The queries are added to your pages before you publish them, so there is no need to run anything special on your webserver.

HTML DBScript is free, and comes with no warranty. Use at your own risk.