Hi,
I have a problem with the Plugin Auto Action. Hopefully I can find an approach to that problem by this way.
explenation:
I want to calculate the age of an user after successfully login. Therefor I use the Auto Action (Type Code). I wrote an php script which calculates the age as a function of birthday and the current date. So far no problem, it works but only when I write the user_id of the logged in rider manuelly in my php script.
part of my sql query from the php script:
(...WHERE `user_id`='1124'...)
Now my question:
How can I get the user_id of the logged in user automatically.
something like that (unfortunately it didn't work by this way):
(...WHERE `user_id`='$user_id'...)
Up to now I couldn't found a solution to include the user_id of the current logged in user in my php script.
Do you have a solution for that problem?
Thanks in advance!