I have a function. in that function in have a select query. another query should return the number of results that will be in the first query. I have this code:
function name ($f){
global $db;
...
$results = "SELECT `a` FROM `b` WHERE $where";
$results_num = ($query = mysqli_query($db, $results)) ? mysqli_num_rows($results) : 0;
echo $results;
echo $results_num;
}
将重复:
SELECT `a` FROM `b` WHERE `keywords` LIKE %abc% 0
什么只是$results
,但不是$results_num/code>? 我不理解为什么要显示<代码>echo$results_num
? 为什么在底有<0><0>><0>>> >
,这样,如果有人能够给我建议解决我真的希望的话。 非常感谢。