The main aspect of the website we are trying to create is to return other user’s information after the signed in user has searched or filtered for a match. Just like in any normal online dating website, a user can filter the results by selecting a certain age, height, eye-colour, hair-colour, etc. And then the results are returned to the user and they are presented with the user’s profile information. Currently a logged in user can be click to the match.php page and is shown this screenshot below:
This is the code used for match.php:
There needs to be a form for the user to select features of other user’s such as the filters mentioned above and then a submit/search button to return the results.
So, I changed the PHP code to the screenshots below:
This screenshot shows the PHP used to return the results, it uses if variables and searches the data from the users table.
Below is a screenshot of the different user’s that have signed up to the website and their data is stored in the users table.
If a user was searching for another user who had blonde hair, blue eyes, 19 years old and studied Tourism Management they would be returned with the result Holly Banks as shown from the two screenshots below:
This is also shown in the screen recording below: