From: Shashank Agarwal Date: 2008-07-15T22:48:34+09:00 Subject: Re: autogenrated table babu nair wrote: > Please can any one for auto generated table,tr,td according to the query > result. > for ex: > columns:7 > query size:3 > > it should generate 7 and 3 You could use nested loops... query_size.times do print "\n" columns.times do print "\n" end print "\n" end -- Posted via http://www.ruby-forum.com/.