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 advance.
Leave a Reply
You must be logged in to post a comment.
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 advance.
You must be logged in to post a comment.
$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. 🙂