i have two tables:
+------+------------------+-----+
| name | pass | uid |
+------+------------------+-----+
| test | 39817a786ddf7333 | 1 |
+------+------------------+-----+
AND
+----+-------------------------------+
| id | directory |
+----+-------------------------------+
| 1 | www.blah.com/appraisals/bos/ |
+----+-------------------------------+
the first table is authentication obviously. i need to take the authentication and make it link to the second table using the uid & id fields with a sql statement like:
mysql> select directory
-> from auth, files where uid=id;
that turns out the directory that I want which is:
+-------------------------------+
| directory |
+-------------------------------+
| www.blah.com/appraisals/bos/ |
+-------------------------------+
two questions:
What sort of statement would I use to have the broswer redirect to this directory and display the contents (index.php or whatever) THERE will be more than one user, so it has to be smart enough to say if this user > then this directory...
What php code would work to make this all happen?
I apologize for my severe ineptitude but I am still learning and need to get something running so that I can then spend some time learning...instead of lighting things on fire from my frustration at programming ignorance.
thanks,