Advertisement
Guest User

Untitled

a guest
Feb 8th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. import pymysql
  2. conn = pymysql.connect(host='sql33.main-hosting.eu', user='u151982936_tick', passwd='YenZSL1oiIrr',
  3.                       db='u151982936_samp')
  4. cur = conn.cursor()
  5. def auth(ids):
  6.     cur.execute("SELECT * FROM t1_test WHERE newid = '%s' and Password =" ids)
  7.  
  8.     for response in cur:
  9.         print(response)
  10.         break
  11.     else:
  12.         print('Такого аккаунта нету, го зарегаем!')
  13.         register()
  14.     cur.close()
  15.     conn.close()
  16.  
  17. ids = int(input("Введи свой айди: "))
  18. auth(ids)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement