Answers for "wpdb num_rows"

PHP
0

wpdb num_rows

global $wpdb;
$wpdb->get_results("
                    SELECT * FROM " . $wpdb->prefix . "product_order 
                        WHERE 
                        rel = '" . $post["id"] . "' AND 
                        `range` = '" . $range . "' AND 
                        category = '" . $range . "'
                "); 

echo $wpdb->num_rows;
Posted by: Guest on March-01-2021

Browse Popular Code Answers by Language