I have a server running red hat 7.1 and apache with php and mysql. I am trying to implement user authentication via the .htaccess protocol but I would also like apache to pass the variable to php so it can then in turn pass the variable to mySQL.
mySQL would then query the database for the access level id for each user that has been properly authenticated. PHP would then enable users to view data according to their access level id. I am having trouble writing code that can effectively do this.
Basically I am trying to pass a variable $remote_user to PHP to pass on to mySQL. mySQL then queries the database for information to then be passed back to PHP for additional handling.
Any help would be great guys. Thanks.
mySQL would then query the database for the access level id for each user that has been properly authenticated. PHP would then enable users to view data according to their access level id. I am having trouble writing code that can effectively do this.
Basically I am trying to pass a variable $remote_user to PHP to pass on to mySQL. mySQL then queries the database for information to then be passed back to PHP for additional handling.
Any help would be great guys. Thanks.