Any one ideas i hear it's due to a tuple but not got a clue what that is haha!
Code: Select all
#Grab the SMS to Tweet Contents
cursor.execute ("SELECT * FROM `twitter` WHERE `content` IS NOT NULL AND `messagesent` = 0 LIMIT 1")
# fetch all of the rows from the query
data = cursor.fetchall ()
for row in data :
sql = "UPDATE `texts` SET `messagesent` = 1 WHERE id = %s", row[id]
cursor.execute (sql)