@lizzie
To get the number of rows returned from a MySQL query, you can use the mysql_num_rows()
function. Here is an example:
1 2 |
$query = "SELECT * FROM your_table"; $result = mysqli_query($connection, $query); |
1
|
$num_rows = mysqli_num_rows($result); |
1
|
echo "Number of rows: " . $num_rows; |
Note: Replace your_table
with the actual name of your table, and $connection
should be the variable representing your MySQL connection.