Hi,
I am working on a script whereby if you are not my friend where by i need to restrict people who are not my friends to view my profile.
for example If I am the logged in user and i am trying to view someone else who is not my friends( i should be denied access with an error message)
The same way as if I am someone's friend in the database I should be able to view their profile.
any help on this please
i have got my table with friend1, friend2 and status = 1 (meaning friendship exist)
AND friend1, friend2 and status =0 ( friendship does not exist and want to show both)