2
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 will make 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 one $qry_result table without knowing what will be returned?
Example: In my SQL Game there is a field where the user type the SQL statement. He can type for example select * from funcionarios
. As I show the information in the table without knowing what it will type?