Well, I thought of that, but I'm using two different databases. One is a PHPBB database, and the other is a custom db that I'm working on creating the php pages to interface with the custom one. All of the users from the php bb that should have admin rights belong to one group in the boards. I tried using a return based on a JOIN between the users and users_groups table, but even when the SQL query returned nothing, I couldnt get the result to recognize the empty query and instead, it said a result was returned. I'm going to try going back to that route with parts of this new solution, but I thought this way could get around the problem I was having.
The results showing up on the page, using the above code and echo statements, show that the session variable is 2, and the id is 6, so I'm completely stumped still.
Yes, I understand the no point in the select field, but I have been messing with that query and result a lot trying to figure out the answer🙂