ligne de numéro PHP Mysqli
mysqli_num_rows($result);
Fragile Ferret
mysqli_num_rows($result);
// Fetch Query
$query = "SELECT user_name from registered_users where user_name like '%ank%'";
// Execute the query and store the result set
$result = mysqli_query($con, $query);
if ($result) {
// it return number of rows in the table.
$row = mysqli_num_rows($result);
}
//number of rows retrieved from a query
<?php
$link = mysql_connect("localhost", "mysql_user", "mysql_password");
mysql_select_db("database", $link);
$result = mysql_query("SELECT * FROM table1", $link);
$num_rows = mysql_num_rows($result);
echo "$num_rows Rows\n";
?>