I want to create a html table which will show the values from the mysql array along with their field name for e.g. I have a table with three columns in it and I want to show it all in a table format like:
Name | Age | Telephone |
User | 22 | 1234568098 |
User1 | 22 | 1234568098 |
User2 | 22 | 1234568098 |
User3 | 22 | 1234568098 |
User4 | 22 | 1234568098 |
I want to dynamically count the mysql columns and display them in a html table along with its values.
I know the PHP count()
function and how to create a table in html.