Title: johnwolf's Replies | WordPress.org

---

# johnwolf

  [  ](https://wordpress.org/support/users/johnwolf/)

 *   [Profile](https://wordpress.org/support/users/johnwolf/)
 *   [Topics Started](https://wordpress.org/support/users/johnwolf/topics/)
 *   [Replies Created](https://wordpress.org/support/users/johnwolf/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/johnwolf/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/johnwolf/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/johnwolf/engagements/)
 *   [Favorites](https://wordpress.org/support/users/johnwolf/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [jQuery to update database query](https://wordpress.org/support/topic/jquery-to-update-database-query/)
 *  Thread Starter [johnwolf](https://wordpress.org/support/users/johnwolf/)
 * (@johnwolf)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/jquery-to-update-database-query/#post-2495029)
 * hey,
    well what do you do in your newpts.php database calls should be placed 
   in this file… If it’s related to wordpress table there is probably already a 
   function for that. Be sure to call this in your file if it’s outside WP.
 *     ```
       define('WP_USE_THEMES', false);
       require($_SERVER['DOCUMENT_ROOT'] . '/wp-blog-header.php');
       ```
   
 * they you can call global $wpdb and play with sql queries
    [http://codex.wordpress.org/Class_Reference/wpdb](http://codex.wordpress.org/Class_Reference/wpdb)
 * hope this helps,

Viewing 1 replies (of 1 total)