Guest User

Untitled

a guest
Oct 17th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. @app.route("/test/<str:y>")
  2. def itemCount(y):
  3. resp1 = ''
  4. h=0
  5. db = MySQLdb.connect(host='***', user='****', passwd='****', db='****', charset='utf8')
  6. cursor = db.cursor()
  7. cursor.execute('''SELECT `ProductModelPrice`,`productBrand`,`productModelNumber`,`productModelName`,`productCategory`,`img`, `akciya` FROM `images` WHERE `productCategory` = %s ''', y)
Add Comment
Please, Sign In to add comment