Difference between revisions of "Conf/Examples/DatabseExample"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
ns_db releasehandle $db | ns_db releasehandle $db | ||
%> | %> | ||
− | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 09:31, 11 January 2012
<html> <head><title>Testing of ADP</title></head> <body> A simple tcl script example of Database Configuration <% set pool "postgres_pool" set sql "select * from users" set db [ns_db gethandle $pool] set row [ns_db select $db $sql] while {[ns_db getrow $db $row]} { ns_adp_puts "row: [ns_set array $row]" } ns_db releasehandle $db %> </body> </html>