• pozirk

    (@pozirk)


    Hello!

    Thank you Tobias for this great plug-in. It helped me very much.
    Here is the question I have.

    There is a flash game where people get point, so in the end of the game they can submit these points and I want to store them in WP-Table Reloaded.

    So I can call some php script from flash game, but what should I do at this script to add data to the table (I guess, I can call any of your plugin php functions).

    If there is any similar question, please just give me a link.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question.

    Unfortunately, I have bad news for you: This is currently not possible. The data in a WP-Table Reloaded table can and should only be changed through the admin interface. There is no API for external data manipulation, and there won’t be, as this is out of the scope of the plugin.
    Basically it would not be very efficient for your site to use this approach, because you would have to load the entire WordPress codebase just to add a row to a table. And as your highscore list is probably pretty large, the table in itself would be stored inefficiently. You would also have problems with the sorting of your table.

    Instead, you should create a new mySQL table and use PHP’s native DB functions to work on that. It is much easier to add a row there and use the SELECT statement for the retrieval and sorting of the data.
    To include such code into WordPress, you could then use a custom page template for the SELECT statement. Additionally, you would gain that you don’t need to load WordPress code to store a new highscore, which will speed up your script a lot!

    Best wishes,
    Tobias

    Thread Starter pozirk

    (@pozirk)

    🙁
    I wish I could use your plugin, I liked it very much.
    Thank you very much for your comprehensive answer.
    Good luck!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Add data removetely’ is closed to new replies.