From: Patrick Okui Date: 2009-09-15T19:52:50+09:00 Subject: Re: ruby-oci8 question On Sep 15, 2009, at 1:33 PM, beny 18241 wrote: > Patrick Okui wrote: >> On Sep 15, 2009, at 1:16 PM, beny 18241 wrote: >> >>> Hi, >>> >>> >>> I have some problem, i want to make select query with $name variable >>> but >>> i cant, this is my code please help what is wrong >>> >>> >>> print "Enter name :" >>> $name = STDIN.gets >> >> this $name has a '\n' in it, try STDIN.gets.chomp > > > thanks works You're welcome. Also consider removing the '$' and using the variable as just "name" just like conn and num_rows (I'm guessing you're from a perl or php background). -- patrick