capture user id - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-27-2010, 10:33 AM   #1 (permalink)
Junior Member
 
Join Date: Apr 2010
Posts: 8
Default capture user id

Hello all

I have made a login page for my site using php. On one of my php pages I have created a flash quiz that stores it’s score in a mysql database via actionscript 3 and php.

At the moment the quiz just saves it’s score to a table with two fields labelled: score, percentage.

I want to add some thing to the table like ‘user’ as well as score and percentage. However, I do not know hot to capture the user’s id from the php page that the quiz is on to store it in the table with the score from the quiz.

Can anyone help please?
pedagog is offline   Reply With Quote
Sponsored Links
Old 04-29-2010, 12:23 AM   #2 (permalink)
Junior Member
 
seventeen's Avatar
 
Join Date: Apr 2010
Posts: 7
Default Re: capture user id

make table user that contain user id and name then add another table score's field that contain user id...

select the user id with php (USER MUST LOG IN FIRST)
then INSERT user id into table score..

hope this will help
seventeen is offline   Reply With Quote
Old 05-01-2010, 02:34 AM   #3 (permalink)
Junior Member
 
Join Date: Apr 2010
Posts: 8
Default Re: capture user id

Thanks for responding Seventeen

I understand what you mean, but if I have a table with the user, and the userID is say, 1, should I store the actual userID in the user table. Is it best to somehow encrypt the userID so that it is not visible in the user table?

I have read that it is best not to store userName, Passwords or UserIDs in a table when they are not encrypted. What do you think?

If I do need to encrypt them, how would I capture the userID if it is encrypted, so that I could use it to store the user’s score?

Sorry it’s a bit of a long response.

Thanks

Pedagog
pedagog is offline   Reply With Quote
Old 05-03-2010, 03:43 AM   #4 (permalink)
Junior Member
 
seventeen's Avatar
 
Join Date: Apr 2010
Posts: 7
Default Re: capture user id

Quote:
Originally Posted by pedagog View Post
Thanks for responding Seventeen

I understand what you mean, but if I have a table with the user, and the userID is say, 1, should I store the actual userID in the user table. Is it best to somehow encrypt the userID so that it is not visible in the user table?

I have read that it is best not to store userName, Passwords or UserIDs in a table when they are not encrypted. What do you think?

If I do need to encrypt them, how would I capture the userID if it is encrypted, so that I could use it to store the user’s score?

Sorry it’s a bit of a long response.

Thanks

Pedagog
Store Username and password or userID in mysql table is OK, it will safe..

say it like this... u make user table contain UserID, username, password and userEncrypt..

then u insert the real userID, Username and password also userEncrypt but encrypt UserID first then Insert into userEncrypt field

Hope This May help....
seventeen is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:49 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting