Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-20-2006, 07:58 PM   #1
Registered: Nov 2004
Location: Gahanna, Ohio, USA
Distribution: Fedora 9
Posts: 158

Rep: Reputation: 30
Question 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:

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!

Old 08-20-2006, 08:22 PM   #2
Registered: Nov 2004
Location: Gahanna, Ohio, USA
Distribution: Fedora 9
Posts: 158

Original Poster
Rep: Reputation: 30
Nevermind, I figured it out. $_SERVER['REMOTE_USER'].


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql Error: Duplicate entry '0' for key 1 w0lv3r1ne Linux - Server 1 08-17-2006 04:30 AM
mysql entry problems atheist Programming 1 09-04-2004 06:06 PM
<br> in mysql entry Boby Programming 2 05-08-2004 11:50 AM
mysql entry in catalina.policy when using security option gschrade Linux - Software 5 03-23-2004 12:23 PM
mysql dupe entry error, how to avoid? hydro Linux - Software 0 09-20-2003 01:08 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration