I'm trying to demonstrate a SQL injection in my app using Python Flask and MySQL. Various references have mentioned that only 1 query can be run at a time, but even when I tried to do it to run 1 query only, I haven't been able to succeed yet. My code is below. I know that the login_email parameter has made it to the query since I'm able to print it. If the query ran successfully, the result should be printed out at the bottom.
print(request.form['login_email'])
query = "SELECT * FROM users WHERE email = %(email)s;"
data = { "email" : request.form["login_email"] }
result = mysql.query_db(query, data)
print(result)
What I tried to input: ' or '1'='1