Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $result = $wpdb->query("SELECT tax_rate_state, count(*) AS tagCount FROM wp_woocommerce_tax_rates GROUP BY tax_rate_state ");
- if($result === FALSE) {
- echo mysql_error();
- $sql = "SHOW TABLES LIKE '%'";
- $results = $wpdb->get_results($sql);
- foreach($results as $index => $value) {
- foreach($value as $tableName) {
- echo $tableName . '<br />';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement