update : 2015.11.03
php.shukuma.com검색:
|
mysqli_result::$num_rowsmysqli_num_rows(PHP 5) mysqli_result::$num_rows -- mysqli_num_rows — Gets the number of rows in a result 설명객체 기반 형식 절차식 형식 Returns the number of rows in the result set. The behaviour of mysqli_num_rows() depends on whether buffered or unbuffered result sets are being used. For unbuffered result sets, mysqli_num_rows() will not return the correct number of rows until all the rows in the result have been retrieved. 반환값Returns number of rows in the result set.
예제Example #1 객체 기반 형식
<?php Example #2 절차식 형식
<?php 위 예제들의 출력: Result set has 239 rows. 참고
|