I have the following table, called test, in MySQL
:
Now I would like to rescue this data in PHP
, but I can not clarify my idea about how is the most correct way to do it. That is, I'm not supposed to know how many rows or fields the table has, but depending on what I have obtained, I can paint a table in PHP with that data.
How would it be the right way to do it?