Thanks
Its all the same page, but this is a more up to date version
An interesting point, for testing purposes. I edited the sql to have the ids in the database, and it did work. (The add friend button was hidden) but when i try and use the session variables etc... it stops working.