$getPrd = mysql_query("SELECT * FROM products
LEFT OUTER JOIN productscontent ON productscontent.productsID = products.id
WHERE productscontent.title LIKE '%".$search."%' OR productscontent.alltext LIKE '%".$search."%'
ORDER BY products.sortnr");
$num = mysql_num_rows($getPrd);
$getPrd
会根据需要返回值,但$num
会返回0
- 为什么会这样?