Jump to ContentJump to Navigation/Login
` ` ` ` ` `

[Register]

Occasional ATutor release updates


No Members Logged In

(8 guests in past 15 min.)

Access Understanding Web Accessibility to learn about accessibility, or Register to take the course for FREE.

Support Forums

Development Forum

Get member_id


You must be signed-in to post.

AuthorSubject
  Page: 1
opd
Subject: Get member_idQuote this post in your reply
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

Avatar for greg
Subject: Re: Get member_idQuote this post in your reply
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_idQuote this post in your reply
Ohh,it's really cool.)smile
Posted: 2009-12-22 05:46:54
 Page: 1

You must be signed-in to post.