I have a table ‘todo’ that stores todo items, along with their ‘type’. The type is either ‘ext’ or ‘int’.
What I want to do is when the user selects ‘ext’ or ‘int’ as the type of an event on the lightbox, it should add all todo items relevant to that type to the event.
I wasn’t sure how to do this using the existing API, so I’ve currently made my own script to attempt to do this. If you know how I can do this using the API, that would be great!
If not, any help on how to fix my current problem would be greatly appreciated!
I run a PHP function that gets sent the type and the event id. It then adds the todo items to the event through MySQL. Although the script is always being run, it doesn’t always seem to save the data to the database. And sometimes, it saves it and then gets deleted straight away. Could there be something that removes data in the database that wasn’t added by the system?