"; $query = "select users.*, groups.name as aff from users, groups ". "where users.id = $_SESSION[uid] and group_id=groups.id;"; $result_acc = db_query($query, $connection); $acc = mysql_fetch_array($result_acc, MYSQL_ASSOC); } else $message .= "The new passwords do not match. Nothing changed!