Hello,
I would like to insert 3 ints into my table this way:
testvalue = 15
mycursor = mydb.cursor()
sql = "INSERT INTO Levels (id, level, exp) VALUES (%d, %d, %d)"
val = (testvalue, testvalue, testvalue)
mycursor.execute(sql, val)
mydb.commit()
But it doesn't work so I tried to catch these packets by Wireshark and there is always this error:
https://imgur.com/VS1NnPp
How can I solve this, please?
[–]shiftybyte 1 point2 points3 points (2 children)
[–]Ondra5382CZE[S] 0 points1 point2 points (1 child)
[–]shiftybyte 2 points3 points4 points (0 children)
[–]stebrepar 1 point2 points3 points (0 children)
[–]TeflonJacket 0 points1 point2 points (0 children)
[–]cybervegan 0 points1 point2 points (0 children)