Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help wanted with PHP uploads

New Here ,
Aug 28, 2007 Aug 28, 2007
Hello,

I am currently creating an application which allows people to login and upload files (mostly pdf reports), I also have access levels setup to mask things from people who aren't authorised to view them.

I know how to do all of the above but what I would like to do is somehow include a user id in the table which stores the uploaded info when people upload a file, so that they could only see what THEY (based on their user id) have uploaded. This is in case they need to delete the files only they have uploaded. So the recordset could be based on a select * from table if userid = x. Just need to know how do i capture the userid.

Cheers and thanks in advance.

Nick
TOPICS
Server side applications
201
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 29, 2007 Aug 29, 2007
LATEST
Nicko_ wrote:
> Just need to know how do i capture the userid.

If you are using the Dreamweaver Log In User server behavior, it stores
the username in a session variable ($_SESSION['MM_Username']). Use that
to query the database and find the ID.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines