user75472
user75472

Reputation: 1295

Can we create table for wordpress?

I am very new to wordress. I have a appointment form. While submitting a form i need to save those information from the form to the database. I created a table of my own lets say wp_appointment and saved the information to this table. Now what i want to know is that is this a good way to do so or is there any solution to this. And i need to display those information in admin section and update. Is it possible? Please do suggest me if i can do or not.

Thanks in advance

Upvotes: 0

Views: 1145

Answers (2)

gasoved
gasoved

Reputation: 346

Now what i want to know is that is this a good way to do so or is there any solution to this.

Yes, this is the ideal way to doing this. Besides, there is something to consider:

  • For ease of use and compatability, you can use wordpress's built-in database functions. Check this one: wpdb Class

And i need to display those information in admin section and update. Is it possible?

Sure. You can create a custom admin page and show/make editable them in there. As a start point check this link: Adding Administration Menus. You can apply the instructions told there to your function.php file to have custom pages without create an "external plugin".

Upvotes: 2

rexposadas
rexposadas

Reputation: 3189

To answer your questions: Yes, it's possible. And what you described is being done by current calendar plugins.

Here is one: http://wordpress.org/extend/plugins/events-calendar/

I would take a look at their code to see how they implement something similar to your idea.

Upvotes: 0

Related Questions