Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'mysql'
- start_time = Time.now
- # Config options
- mephisto_db = { 'host' => '127.0.0.1', 'user' => 'root', 'password' => '', 'database' => 'single_mephisto_production' }
- mephisto = Mysql.real_connect(mephisto_db['host'], mephisto_db['user'], mephisto_db['password'], mephisto_db['database'])
- mephisto.query("SELECT * FROM contents WHERE id = '103188'").each_hash do |article|
- return article['body'].gsub("£", "£")
- end
Add Comment
Please, Sign In to add comment