Conf/Examples/DatabseExample

From AOLserver Wiki
Revision as of 09:30, 11 January 2012 by Visitatvishal (talk | contribs) (Created page with ' <html> <head><title>Testing of ADP</title></head> <body> kjhkjhk <% set pool "postgres_pool" set sql "select * from users" set db [ns_db gethandle $pool] …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 <html>
   <head><title>Testing of ADP</title></head>
 <body>  
 kjhkjhk
 <% 
  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>