Advertisement
Guest User

Untitled

a guest
Jun 18th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. post '/insert_users/' do
  2. conn = TinyTds::Client.new(...)
  3. username = params[:username]
  4. password = params[:password]
  5. phone_number = params[:phone_number]
  6. profile_state = params[:profile_state]
  7. clasa = params[:clasa]
  8. sql = "insert into ServerUsers(Username, Passwords,Phone_Number, Profile_State, Class) values('username, password, phone_number, profile_state, clasa')"
  9. cursor = conn.execute(sql)
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement