开发者

Can you can row count after using wpdb get_var?

开发者 https://www.devze.com 2023-03-10 22:42 出处:网络
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

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. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消