[resolved] How to add info to a table in database? (4 posts)

  1. hejohn
    Posted 9 years ago #

    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?

  2. hejohn
    Posted 9 years ago #

    Well, I figured it out and do use an extra file to insert, delete and update any posts.

  3. Jaxia
    Posted 9 years ago #

    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.


  4. hejohn
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic