in particular, I succeeded with a row of objects but, as sometimes the object searched has multiple answer lines (unknown number) I would like them to be added to the table.
if 'CODART' in request.form:
CODART = request.form['CODART']
cursor = conn.cursor()
cursor.execute('SELECT .... MSI_CODART =?',(CODART))
codart = cursor.fetchone()
codart1=codart[i]
print(codart[i])```
I use this code repeated by changing column name
then I pass them to html:
``` codart1 is not None:
return render_template('Simple.html', codart2=codart1)```