Hello
Could you tell me how to chain two INSERT in an autoaction query ?
I tried with
Code:
INSERT INTO `#__groupjive_plugin_events` (`published`, `params`, `user_id`, `group`, `title`, `event`, `location`, `end`, `start`) VALUES (1, '{\"drophscat\":\"50\",\"gallery\":"[var3_asset]"}', [user_id], 56, '[var3_params_campaign]', '[var3_message]', 'internet', NOW()+INTERVAL 10 YEAR, NOW());
INSERT INTO `#__groupjive_plugin_events_attendance` (`user_id`, `event`, `date`) VALUES ([user_id], SELECT LAST_INSERT_ID(), NOW());
and also
Code:
INSERT INTO `#__groupjive_plugin_events` (`published`, `params`, `user_id`, `group`, `title`, `event`, `location`, `end`, `start`) VALUES (1, '{\"drophscat\":\"50\",\"gallery\":"[var3_asset]"}', [user_id], 56, '[var3_params_campaign]', '[var3_message]', 'internet', NOW()+INTERVAL 10 YEAR, NOW());
SELECT LAST_INSERT_ID() AS l.id;
INSERT INTO `#__groupjive_plugin_events_attendance` (`user_id`, `event`, `date`) VALUES ([user_id], l.id, NOW());
but only the first query is executed.
I also tried to separate rows but no result neither, still the first one only is executed.
Thanks