Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. global $wpdb;
  2. $results = $wpdb->get_results( 'SELECT * FROM wp_options WHERE option_id = 1', OBJECT );
  3.  
  4. $results = $GLOBALS['wpdb']->get_results( 'SELECT * FROM wp_options WHERE option_id = 1', OBJECT );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement