Skip to content
Advertisement

Im managed to display values of a table in html with flask and python but i dont understand the logic behind my solution

this part of code im using to Display the entries in the database on index.html

JavaScript

birthday database

JavaScript

and this is the html code i use to display the name, the month , and day

JavaScript

can someone explain if i have assign

JavaScript

and the variable name = people

whats the logic behind this loop ?

JavaScript

Advertisement

Answer

I recommend you to learn python and flask structure first.

JavaScript

SELECT *(mean all) will show u all records in birthday column.

JavaScript

for loop provides all records in the people variable to be displayed on jinja.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement