0
如何讓這段代碼不會給錯誤,如果他查詢是空的?Mysql查詢錯誤
$ititle = 'test5';
$query = mysql_query("SELECT title, url, MATCH (title, url) " .
"AGAINST ('test5') AS score FROM interlinks " .
"WHERE MATCH (title, url) AGAINST ('test5') " .
"AND title <> 'test5' LIMIT 20");
while ($irow = mysql_fetch_assoc($query) || )
{
echo $irow["title"];
echo '<br />';
}
TY!
您的代碼缺少「||」運算符的右操作數。 – cdhowie 2010-11-21 20:52:26
您遇到的錯誤將有助於... – 2010-11-22 01:03:45