we have 2 tables 1 for usernames and it has ID for each username nad other table is mailbox ,,, mails by ID now i wanna do join between these 2 tables and i want to get id for username and id for mail box from same query ?
$res= "SELECT users.id,users.username,mailbox.id, mailbox.sender,mailbox.subj,mailbox.date... ".
"FROM users, mailbox ".
"WHERE mailbox.receiver='".$_SESSION["myusernam... AND mailbox.sender=users.username";
thanks in advance.