Code for making profile visible to only those who fit your criteria

Hello everyone, nice to meet you, hope you’re all doing well :blush:

I’m a newbie coder, just learning PHP, variables, functions etc. I did a course where we used Replit to help us code.

I’m still getting my head around coding and understand the basics. I want to create a matchmaking site using php with MySQl as the database. People will register and become members. Normally, dating sites have filters so the member, can filter profiles they want to see, according to age, location, etc.

What I want to do is the opposite, and this is not something, I have seen on any ready made software or CMS, which is why I’m writing my own.

On my matchmaking site which will be for serious people only, I want the Member to be able to control who sees his/her profile. This means that profiles will be hidden from all except those who meet your criteria. The aim of this is to filter out unsuitable people contacting you.

So for example, a Member who only wants his/her profile to be seen by someone who is in a certain location, certain age, certain hobbies, certain religion, etc should be able to set these. I will have many such filters. This means that the Member’s profile is only visible to these people.

Can anyone show me, what I’d need to do in PhP? Would I need to use variables, functions, and how? or is there another solution?

Thank you in advance for any help.

Sponsor our Newsletter | Privacy Policy | Terms of Service