LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   A Way Tag Entry To MySQL With User Name (https://www.linuxquestions.org/questions/programming-9/a-way-tag-entry-to-mysql-with-user-name-475714/)

windisch 08-20-2006 06:58 PM

A Way Tag Entry To MySQL With User Name
 
I have a streaming radio request system that I've built, with lots of help from great people on this forum. I have recently added a rating system, so users can rate songs. The rating system (using PHP) does not have a section for a username, but it does grab the ip address and attach it to the rating in MySQL. The program uses this to grab the ip:

Code:

$ip = $_SERVER['REMOTE_ADDR'];
Is there a command like the above to grab a user who logs into the website, using a login/pass from .htaccess/.htpasswd?


I appreciate any help!

Adam

windisch 08-20-2006 07:22 PM

Nevermind, I figured it out. $_SERVER['REMOTE_USER'].


All times are GMT -5. The time now is 09:03 PM.