开发者

Can you can row count after using wpdb get_var?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜