Advertisement
Guest User

Untitled

a guest
May 25th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. $wpdb->query( $wpdb->prepare(
  2. "INSERT INTO $wpdb->postmeta( post_id, meta_key, meta_value ) VALUES ( %d, %s, %s )",
  3. array(
  4. $this->_page_id,
  5. $metakey,
  6. $metavalue
  7. )
  8. ));
  9.  
  10. $this->_db->query( $this->_db->prepare(
  11. "INSERT INTO $this->_db->postmeta( post_id, meta_key, meta_value ) VALUES ( %d, %s, %s )",
  12. array(
  13. $this->_page_id,
  14. $metakey,
  15. $metavalue
  16. )
  17. ));
  18.  
  19. Catchable fatal error: Object of class wpdb could not be converted to string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement