From: Sam Duncan Date: 2012-10-02T06:02:53+09:00 Subject: Re: mysql result is showing empty On 10/02/2012 09:56 AM, Ferdous ara wrote: > Hi > Bellow script., > when i run the script. it does not show any output . > > #!/usr/bin/ruby > require 'cgi' > require 'mysql' > cgi = CGI.new > > m = Mysql.new("localhost","root","","fosiul") > r = m.query("SELECT * FROM dc") > > puts cgi.header > > puts " > > > " > > where i am doing wrong ??? > Please let me know > Thanks > Does this work? ... puts "" ... Sam