Title: Adding and Reading data to custom table
Last modified: August 19, 2016

---

# Adding and Reading data to custom table

 *  Resolved [nsathees](https://wordpress.org/support/users/nsathees/)
 * (@nsathees)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/adding-and-reading-data-to-custom-table/)
 * I am trying to add a custom table to the WP database and fill it with the user
   data. Queue is for moderation and post it as a post to wordpress on acceptance.
 * I have a template for single with a form requesting Data from browser. I am passing
   this form data to a php file to check and process which is under Template dir/
   files/process.php
 * I am able to e-mail the data collected. but I want to semi-automate the process.
   Thus I want to add the Data to a table in WP database. That’s where I am now.
   $wpdb returns error. try to add a function in function.php file. No luck!
 * Can anyone help me here?
    tks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [nsathees](https://wordpress.org/support/users/nsathees/)
 * (@nsathees)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/adding-and-reading-data-to-custom-table/#post-1307879)
 * the other question is how would I call the do_action >create_post from a form
   button.
 *  Thread Starter [nsathees](https://wordpress.org/support/users/nsathees/)
 * (@nsathees)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/adding-and-reading-data-to-custom-table/#post-1307895)
 * For 2 hours no answer, I guess I am left with building a plug-in for this task.
 *  Thread Starter [nsathees](https://wordpress.org/support/users/nsathees/)
 * (@nsathees)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/adding-and-reading-data-to-custom-table/#post-1307998)
 * i have moved this tread to plugin section

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding and Reading data to custom table’ is closed to new replies.

## Tags

 * [add_action](https://wordpress.org/support/topic-tag/add_action/)
 * [wpdb](https://wordpress.org/support/topic-tag/wpdb/)

 * 3 replies
 * 1 participant
 * Last reply from: [nsathees](https://wordpress.org/support/users/nsathees/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/adding-and-reading-data-to-custom-table/#post-1307998)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
