wpdb num rows

Solutions on MaxInterview for wpdb num rows by the best coders in the world

showing results for - "wpdb num rows"
Emilie
22 Sep 2020
1global $wpdb;
2$wpdb->get_results("
3                    SELECT * FROM " . $wpdb->prefix . "product_order 
4                        WHERE 
5                        rel = '" . $post["id"] . "' AND 
6                        `range` = '" . $range . "' AND 
7                        category = '" . $range . "'
8                "); 
9
10echo $wpdb->num_rows;
11
queries leading to this page
wpdb num rowswpdb num rowswpdb num rows