In this example I defined some attributes to be shown, but in the game I do not know which ones to show because the user is the one who is going to ask the query.
<?php
while ($row = mysql_fetch_array($qry_result)){?>
<tr>
<td><?= $row[id_funcionario]?></td>
<td><?= $row[end_funcionario]?></td>
<td><?= $row[nome_funcionario]?></td>
</tr>
<?php } ?>
How do I list this $ qry_result in the table without knowing what will be returned?
Example: In my SQL Game there is a field where the user types the SQL statement. It can type for example select * from funcionarios
. How do I display the information in the table without knowing what it will type?