Skip to content
Snippets Groups Projects
Commit b61d96f5 authored by cortylal's avatar cortylal
Browse files

stats

parent 275791f5
No related branches found
No related tags found
No related merge requests found
......@@ -174,6 +174,7 @@ class Stats
FROM animal a, race r
WHERE a.race = r.id
GROUP BY r.nom, r.id
ORDER BY count DESC
LIMIT 10" ); // on prépare notre requête
$requete_prepare->execute();
......@@ -192,6 +193,7 @@ class Stats
WHERE a.race = r.id
AND e.id = r.espece
GROUP BY e.nom, e.id
ORDER BY count DESC
LIMIT 10" ); // on prépare notre requête
$requete_prepare->execute();
......
......@@ -143,7 +143,7 @@
<th>Nombre d'individu </th>
</thead>
<tbody>
<?php foreach ($stats->top10Race) as $ligne): ?>
<?php foreach ($stats->top10Race as $ligne): ?>
<tr>
<td><?php echo $ligne["nom"]; ?> </td>
<td><?php echo $ligne["count"]; ?> </td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment