的代碼:警告:mysqli_num_rows():提供的參數不是一個有效的MySQL結果
$stmt = mysqli_prepare($link, "SELECT * FROM adm_users WHERE users_username = ? AND users_password = ?");
mysqli_stmt_bind_param($stmt, 'ss', $user_adm_name, $user_adm_password);
mysqli_stmt_execute($stmt);
mysqli_stmt_store_result($stmt);
mysqli_stmt_fetch($stmt);
$adm_check_log = mysqli_num_rows($stmt);
mysqli_stmt_close($stmt);
回程:
警告:mysqli_num_rows():提供的參數不是一個有效的MySQL 結果
爲什麼?有人能爲我解釋嗎?
對象(mysqli_stmt)#3(0){} – 2013-03-05 22:54:17
@JohnJr - 見我更新的評論。 – Stuart 2013-03-05 23:32:39