Advertisement
bowenac

errr

Oct 4th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1.       $result = $wpdb->query("SELECT tax_rate_state, count(*) AS tagCount FROM wp_woocommerce_tax_rates GROUP BY tax_rate_state ");
  2.  
  3.       if($result === FALSE) {
  4.  
  5.       echo mysql_error();
  6.       $sql = "SHOW TABLES LIKE '%'";
  7.       $results = $wpdb->get_results($sql);
  8.  
  9.       foreach($results as $index => $value) {
  10.       foreach($value as $tableName) {
  11.         echo $tableName . '<br />';
  12.       }
  13.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement