SHARE
TWEET

My Code

a guest Jan 17th, 2013 34 Never
  1.     <?php
  2.         global $wpdb;
  3.         $images = intval( $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures") );
  4.         if ($images > 9) {
  5.             // Do something
  6.     } ?>
RAW Paste Data
Top