Skip to content
Advertisement

all values not displaying from SQL data table in PHP

I am trying to display all my data from MySQL to PHP like the following, but only 1 data is being displayed

now the problem is, only one data is being displayed in the table, how can I display all data with my same code? can anyone please tell?

Advertisement

Answer

In your view part, you have add foreach to print all values:

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