$query->num_rows;
or
mysqli_num_rows($query);
More Related Contents:
- PHP create new array by value
- PHP Mysqli query update not working with variable
- Turning a SQL row into an array
- How to insert database rows if there are no answers
- two person chat room
- Pagination data
- Fatal error: Call to a member function bind_param() on boolean [duplicate]
- When should I use MySQLi instead of MySQL?
- Example of how to use bind_result vs get_result
- mysqli::query(): Couldn’t fetch mysqli
- get array of rows with mysqli result
- How to start and end transaction in mysqli?
- How to install MySQLi on MacOS
- How do I iterate over the results in a MySQLi result set?
- PHP MySQLI Prevent SQL Injection [duplicate]
- The mysqli extension is missing. Please check your PHP configuration
- How to test if a MySQL query was successful in modifying database table data?
- mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in [duplicate]
- PHP Commands Out of Sync error
- MYSQLi error: User already has more than ‘max_user_connections’ active connections [duplicate]
- store_result() and get_result() in mysql returns false
- Checking if mysqli_query returned any values?
- Warning: mysqli_query() expects parameter 1 to be mysqli, string given in
- Mysqli Prepare Statement – Returning False, but Why? [duplicate]
- Fatal error: Call to undefined method mysqli_result::fetch_all()
- How to run the bind_param() statement in PHP?
- mysqli – fetch_Array error call to a member function fetch_array() on a non-object mysqli [duplicate]
- Set character set using MySQLi
- Cannot figure out how to run a mysqli_multi_query and use the results from the last query
- How to get a list of databases?