$wpdb->num_rows incorrect
-
Hi – Can anyone tall why in this code $wpdb->num_rows always returns “2” even when there are more rows? I’ve also tested it with SELECT *, in which case it returns 1. I’m really confused…
$wpdb->get_results( 'SELECT COUNT(*) FROM $wpdb->rah_leads' ); $rowCount = $wpdb->num_rows;
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘$wpdb->num_rows incorrect’ is closed to new replies.