Skip to content
Advertisement

How do you fetch data from the database? [closed]

JavaScript

I created a row in my database named “temperature” and wanted to include it in a table on the webpage I have created but I don’t know how to call the contents of the newly added row (temperature) to display. It did add a new row because I added “Temperature” in the table header but I don’t know how to properly call the values for temperature from the database.

enter image description here

enter image description here

Advertisement

Answer

I think that there’s a confusion… Here “Temperature” is not a row, but a column.

You can try to add the following code line inside your loop :

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