Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このステートメントの結果セットの行数を取得する方法を知りたいです。
$data=$db->query("SELECT name FROM users")->fetchAll();
に似たものmysqli_num_rowsが必要ですが、を使用していmedooます。
mysqli_num_rows
medoo
ご協力いただきありがとうございます!
ドキュメントにはcountメソッドがあります:
$count = $database->count("users");
これを試してください: 行数を数えます:
$count = $database->count($table, $where);