
I didn't want to tripple post, but I got it. I was still connecting to an old table, rather than the new table somewhere else in the script. Oh, and $_SESSION['username'] should have been $_SESSION['user'].
No, it should not be $_SESSION['user']. It doesn't matter what session names are called, and I called it username as it's a full username, not just 'user' which isn't shortened.
Want to hide these adverts? Register an account for free!