📜  wpdb num_rows - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:42.983000             🧑  作者: Mango

代码示例1
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;