myArray = [['example1','example2'], ['value1','value2']]
arraySize = len(myArray)
try:
for r in range(0,arraySize):
try:
cur.execute("INSERT INTO series(title) VALUES (%s)",(myArray[r]))
conn.commit()
except:
print "Error"
conn.rollback()
This is my code. I want to insert myArray[r] to my Database but Program gives me "Error" message. How can I insert all items like (['example1','example2']) in 1 row.