SHARE
TWEET

My Code

a guest Jan 17th, 2013 35 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Want to get better at PHP?
Learn to code PHP in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top