Code:
$row = mysql_query("SELECT dept FROM $db_table WHERE superemail = '$sent_superemail' ");
$set_dept = $row[?];
$sql = "SELECT * FROM $dbtable WHERE dept = '$set_dept' "
Basicly I'm trying to get the dept based on the superemail, but I can't figure out how I would do it. I'm farely new to SQL.
Thanks.