From: cristian cristian Date: 2012-12-14T01:56:24+09:00 Subject: Re: Database query Thank you for the help! Panagiotis I will look into datamapper but now Im stuck with this problem... :) This always puts 'Nothing' even though I know I have a Key==7 in the table. I miss something... Any suggestions? result_set = db.execute( "SELECT Key,Url FROM Sites" ) result_set.each do |row| row.each do |key, value| if key=='7' puts "#{key} => #{value}" else puts "Nothing" end puts '*' * 20 end end Br cristian -- Posted via http://www.ruby-forum.com/.