$foot = mysql_query("SELECT count(*)
FROM tblQA
WHERE intResponseID = ''
AND cCategory = 'Football' as qcount,
(SELECT max(dPostDateTime)
FROM tblQA
WHERE intResponseID = ''
AND cCategory = 'Football') as lastq");
$football = mysql_fetch_array($foot);
echo "<td class='forum'>" . $footbll['qcount'] . "</td>";
echo "<td class='forum'>" . $footbll['lastq'] . "</td>";
這不會顯示我的表中的任何內容。我沒有發佈整個HTML代碼,我有表結構很好。我哪裏錯了? SQL查詢
'$ football'或'$ footbll',這是正確的拼寫?你確定你的查詢沒有產生任何錯誤嗎? – BoltClock 2010-10-23 15:32:08
不可能告訴。複製+粘貼完整查詢,在數據庫GUI中運行它,看看是否有結果出現。 – 2010-10-23 15:32:35
拼寫是我的錯誤在這裏,它的代碼($ football) – BigMike 2010-10-23 15:33:41