You can also try below code to retrieve count of rows.
$myquery = $wpdb->get_results( "SELECT * FROM tablename WHERE ID='some-value'" );
echo $wpdb->num_rows;
Let me know if you have any problem.
cheers
You can also try below code to retrieve count of rows.
$myquery = $wpdb->get_results( "SELECT * FROM tablename WHERE ID='some-value'" );
echo $wpdb->num_rows;
Let me know if you have any problem.
cheers