Removed old working backup - fixed a minor placement of </html> tag from print statements (don't shoot me for printing HTML off stdout)

master
Silverwizard 10 years ago
parent e6a0c07dc7
commit 98e696c71a
  1. 2
      display.rb
  2. 6
      display.rb.bk

@ -27,10 +27,10 @@ print ' User<input type="text" name="user" />'
print ' Game<input type="text" name="game" />' print ' Game<input type="text" name="game" />'
print ' <input type="submit" value="Display Rolls" />' print ' <input type="submit" value="Display Rolls" />'
print ' </form>' print ' </form>'
print '</html>'
result = $my.query("SELECT * from rolls" + clause) result = $my.query("SELECT * from rolls" + clause)
result.num_rows.times do result.num_rows.times do
puts result.fetch_row.join("\s") + "<br />" puts result.fetch_row.join("\s") + "<br />"
end end
print '</html>'

@ -1,6 +0,0 @@
#!/usr/bin/ruby
require "./db"
result = $my.query("SELECT * from rolls")
result.num_rows.times do
puts result.fetch_row.join("\s") + "<br />"
end
Loading…
Cancel
Save