I am trying to run the below SQL query using pymysql in python
cursor.execute(""SELECT count(1) from user_login WHERE user_id="+username + "and password="+password"")
Here username=abc and password=xyz are variables with values
I know there is a problem with quotation marks.Can someone suggest me the right way to do this?