I understand that $wpdb->get_var returns a single value. But is there way to determine the number of rows that the query matched? Thanks in advanc开发者_Python百科e.
$wpdb->num_rows might work. I'm sure it works for $wpdb->get_row but not sure about $wpdb->get_var. Try it & let us know. :)
精彩评论