Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

My Code

By: a guest on Jan 17th, 2013  |  syntax: PHP  |  size: 0.18 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     <?php
  2.         global $wpdb;
  3.         $images = intval( $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures") );
  4.         if ($images > 9) {
  5.             // Do something
  6.     } ?>