Guest User

Untitled

a guest
Jul 17th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. require 'rubygems'
  2. require 'mysql'
  3.  
  4. start_time = Time.now
  5.  
  6. # Config options
  7.  
  8. mephisto_db = { 'host' => '127.0.0.1', 'user' => 'root', 'password' => '', 'database' => 'single_mephisto_production' }
  9. mephisto = Mysql.real_connect(mephisto_db['host'], mephisto_db['user'], mephisto_db['password'], mephisto_db['database'])
  10.  
  11. mephisto.query("SELECT * FROM contents WHERE id = '103188'").each_hash do |article|
  12.  
  13. return article['body'].gsub("£", "£")
  14. end
Add Comment
Please, Sign In to add comment