Support » Plugins and Hacks » [Resolved] How to add info to a table in database?

[Resolved] How to add info to a table in database?

  • I’m creating a plugin to show a list over my dvd titles. So far I have made a new table in the database called wp_dvd. So far my plugin can read from the table and give an output to an static page. Demo: http://www.slikjegserdet.net/helge/dvd-liste/

    Now I’m extending the plugin so it’s a part of my admin area. So far I have made an new meny etc. and a form to register new titles.

    Here’s my problem:
    The form is almoste ok. But I can’t get the form / plugin to insert the new title into the database.

    I would like to have the code inside the same file. So far I have tried $_SERVER[PHP_SELF] inside the action-tag. I belive this is right. But with no luck.

    Anyone who can help me?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well, I figured it out and do use an extra file to insert, delete and update any posts.

    Would you mind sharing your plugin, or some info on how you did this? I’d like to do something similar, and I’m just trying to get started.


    It’s been a long time since I solved this problem. For those who want this plugin, please contact me through my contactform: http://www.slikjegserdet.net/helge/kontaktskjema/ Sorry it’s in Norwegian but you are so smart that you get it.

    At this point the plugin works perfect for me, but I will not pubilsh it cause I have no time for supporting the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] How to add info to a table in database?’ is closed to new replies.