I'm trying to retrieve data from MySQL table and showing the result in Tkinter label
sql=("SELECT fname,lname,ID from students_details where fname = %s")
val=(name)
mycursor.execute(sql,val)
results = mycursor.fetchall()
mydb.commit()
mydb.close()
l2=Label(top3, text = '{}Your attendance has been recorded'.format(results),font=("Helvetica", 14),bg='#BFD5ED')
l2.place(relx=0.5,rely=0.10,anchor =S)
The error i got isCould not process parameters
Any ideas or suggestions will be helpful!!