mysql obtient le nombre de lignes php
$count_query = "select count(*) from users";
Rht
$count_query = "select count(*) from users";
function get_number_of_db_rows($table_name)
{
global $wpdb;
$count_query = "select count(*) from $table_name";
$num = $wpdb->get_var($count_query);
return $num;
}
SELECT FOUND_ROWS();