0
我試圖根據行數2個MySQL查詢組合的號碼查詢,在查詢時返回,這樣的事:結合基於從第一查詢結果
mysql_query("SELECT * FROM `new_userprofile_combined`
WHERE `upg_featured` >= NOW() LIMIT 20
IF mysql_num_rows(1st query) < 20
(SELECT * FROM `new_userprofile_combined`
WHERE `upg_featured` < NOW() ORDER BY rand()
LIMIT (20-mysql_num_rows(1st query))) ");
這可能嗎?我該怎麼做?