What's the code to open a db and select a certain field ?
For example, I'm using the mail function and need the code to look up the session id [id field of the users table] of the user, then look for the user's email from the Users table and the email field so that the $email command works...