Advertisement
Guest User

Untitled

a guest
Jan 16th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.11 KB | None | 0 0
  1.   if db
  2.    stmt = db.prepare "SELECT url FROM bbs ORDER BY RAND() LIMIT 1"
  3.    rs = stmt.execute
  4.    puts(rs)
  5.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement