Im trying to get some content from a table
my code looks like:
@app.route('/')
def home():
cursor = mysql.connect().cursor()
cursor.execute("SELECT titlle from cards ORDER BY id desc")
data = cursor.fetchone()
return data
but it only shows me one because well... I'm using the fetchone() but when I used the fetchall() it says that there are too many records :/
how can I fix my code to actually display all titles from the table cards