I know this question is repeated, but I cannot follow the examples for my situation. I'm querying Quake 2 servers for a personal project
foreach ($results as $data) {
echo "<pre>";
print_r($data['players']);
}
the info obtained:
[0] => Array
(
[frags] => 7
[ping] => 28
[nick] => Player
[gq_name] => Player
[gq_score] => 7
[gq_ping] => 28
)
[1] => Array
(
[frags] => 27
[ping] => 31
[nick] => lE'Heineken.
[gq_name] => lE'Heineken.
[gq_score] => 27
[gq_ping] => 31
)
)
So how can I move this info in a simple table?
<table>
<tr>
<th>Players</th>
<th>Frags</th>
<th>Ping</th>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
I'm trying to do something like q2servers
Thanks for your time, and sorry for my english. Regards