I'm trying to pass my variable into a statement with 'LIKE' but I'm getting all kinds of formatting errors. I tried cursor.execute("SELECT title FROM movies WHERE title LIKE '%%s%'" %Keyword) and other variants of it, but nothing works. How can I get the LIKE statement to interprit my variable?
Im using MySQL workbench and the 'Keyword' variable stores input from a FORM tag in html. The whole project is based on making a search website.