#appriciate your helping
email = input("enter your email ")
password = input("enter your password ")
print(email)
print(password)
def login(email, password):
mycursor = mydb.cursor()
query = " select * from users where email=%s AND password=%s"
mycursor.execute(query,(email,password))
cur = mycursor.fetchone()
# users = cursor.fetchall()
print(type(cur))
if cur is None:
print("User not found, Register First")
else:
print(cur)
login(email,password)
Input which I am giving -
email "xyz@gmail.com"
password"12345"
how I'll resolve this and I am fetching my data from my db and I fetch data dynamically