Skip to content
Advertisement

Use PHP foreach loop to display data in many html div tags

I have the following data and would like to display it in different containers in html.

JavaScript

The containers are winner_1. As of right now the first winner_1 display the last Name from the above table.

How can I get it to say CA.PA in the first winner_1, and AZN.ST in the second winner_1, and AMGN in the last winner_1.

JavaScript

The page can be seen here: https://signal-invest.com/markets-today/

Advertisement

Answer

One option is generated div tags using php:

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