I’m kind of new in python and want to make a MySQL select.
I want to select from the MySQL and add a variable to the query like this:
date = now.strftime("%Y-%m-%d)
sql = "SELECT * FROM table WHERE date='%s'" % date
(This offcourse, doesn’t work)
I’m used to Php so this is kind of new to me as you can see 🙂
THANKS!
Maybe this does what you want…