How can I get the current user_id?
Posted: Tue Mar 11, 2008 1:45 pm
Hi,
I am using component Community Builder, and I have a own-created php-file which is loaded only for the first time a user loggs in. There is a button, on which a php function updates a field in the jos_component table.
The problem is, I don't know how to get the user_id of the logged user. (I need it because I want to update his field in this table)
Can anyone explain to me, how i can get this? Perhaps include a certain php file?
I am using component Community Builder, and I have a own-created php-file which is loaded only for the first time a user loggs in. There is a button, on which a php function updates a field in the jos_component table.
The problem is, I don't know how to get the user_id of the logged user. (I need it because I want to update his field in this table)
Can anyone explain to me, how i can get this? Perhaps include a certain php file?