Forum Moderators: coopster

Message Too Old, No Replies

authorization to directory

php mySQL question

         

blind

10:31 am on May 27, 2003 (gmt 0)

10+ Year Member



hello. complete php mySQL newbie looking for help

Im wondering how i could go about this little problem.
I have a mySQL databse with a table full of users and their password. They get added from some input fields on a php page using the password() thing .
But what i want is to let only thses people with the usenames in this table to gain access to all the files in the directory called "edit" so if they go www..../edit/create.php or www..../edit/delete.php it prompts them for a username and passwrod that gets checked from the usernames in the database list.
how can i go about doing this.
any help would be great.

jatar_k

3:26 am on May 28, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld blind,

I would think that a little login form and then the use of either sessions [php.net] or cookies [php.net] to track their permissions/root folder.

The login form can take the values they have entered and compare them with the data from mysql [ca3.php.net].

blind

3:33 am on May 28, 2003 (gmt 0)

10+ Year Member



yeah thanks man sesions look like agood option
cheers

jatar_k

3:34 am on May 28, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



and if you need some pointers with that you know where we are. ;)

We'll try not to take so long next time.