I have a php page that needs to go into a database and dig out a person's department and location, knowing their PIN. I suspect this is a few lines of code based on past experience. I don't want to go to external files and the like. I just need to know if, in database X, table Y, PIN=4444 (for example), then DEPT is 4 and LOC is 10, and then put those values into ordinary variables. I _am_ in a hurry.