Hello!
I have 2 tables: customers and standby and I added a new button into my grocery crud in standby in that way:
$crud->add_action('Send', '', 'standby/copyrow','ui-icon-plus');
Both tables have the same fields, in standby I receive data from a form and the idea it's when I click "Send" copy that id ino customers and delete that id from standby
In other words I need to add a row from the first table (where I added a new button) into the second one, and then delete that row from the first table.
then I created a function
function copyrow($id) { // I don't know how can I add that row }
Hope someone can help me, thanks in advance!