我有以下 MySQL 查询
$jokerQuery = mysql_query("SELECT `Joker sport`,
COUNT(`Joker sport`) AS jokerCount
FROM Profiles
WHERE `CompetitorID` = 5
GROUP BY `Joker sport`
ORDER BY COUNT(`Joker sport`) DESC
LIMIT 1
");
在 phpMyAdmin 中返回以下结果
Joker sport | jokerCount
8 | 8
我认为下面的 php 会显示结果,但它不起作用。我应该写什么来回显结果?
$jokerResult = mysql_fetch_array($jokerQuery);
echo $jokerResult['Joker sport'];
echo $jokerResult['jokerCount'];