Support Forums
Development Forum
Get member_id
You must be signed-in to post.
| Author | Subject | |
|---|---|---|
| Page: 1 | ||
| opd | Subject: Get member_id | |
| Hi, I'm making a training program using ATutor as the platform. The content is text, video and flash swf and all user submissions are made through swf. I have created additional tables in the database to store user submissions in however I can't work out how to get the member_id of the current user to send with the users submission. I have swfs which the user types into and then clicks a submit button on. This button loads a 'senddata.php' file which writes the submission to the database but I need a way for the 'senddata.php' file to get the current users member_id to send along with the users submission. I've tried making a simple php file which calls an include to the 'vitals.inc.php' file and then echos the member_id and username but including the 'vitals' files makes the page redirect to the default course page. Any help would be appreciated. Posted: 2009-05-24 22:38:13 | ||
greg![]() | Subject: Re: Get member_id | |
| The current member id is contained in the variable $_SESSION['member_id']. Attach it to your db query Posted: 2009-05-25 08:24:42 | ||
| Wyatt | Subject: Re: Get member_id | |
| Ohh,it's really cool.) Posted: 2009-12-22 05:46:54 | ||
| Page: 1 | ||
You must be signed-in to post.


