0

Hi guys

I'm trying to place a user input into a database(mysql)

newplayer=raw_input('Please enter a new player name: ")

the sql commands to insert data is

sql="""INSERT INTO PLAYERS(NAME) VALUES('newplayer')"""

When i check the database it shows newplayer instead of what the user has entered.
any ideas of how i can solve this

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by pyTony
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.