How to get num_rows value from result set of sql query in php?

 

    [current_field] => 0
    [field_count] => 2
    [lengths] => 
    [num_rows] => 3
    [type] => 0


In PHP mysqli_num_rows() function is an inbuilt function which is used to return the number of rows present in the result set. It is generally used to check if data is present in the database or not. Below is the syntax for this function:

mysqli_num_rows ( $result );

 


Related #tags:     #php     #mysql     #sql    

Related questions




Looking for change? Click below to prepare for technical interview.


Technical Interview Questions