Jump to content

Recommended Posts

Hello

Thanks for your time

 

Im wrking on a dating site and i have a new section called "My ideal match", where the member fills out who he feels would be his best match....such as , Female, ages 20-23, observant, 5'3"-5'9" etc... i want to know how to create a system that automatically generates search results based on the person's preference that user filled out in the My ideal matches. then, these results would be sent to his email address as well...

 

Is there is any built application or i have to code from screcth.I have such idea for it like how i will proceed but need sm guidence so that i can move ahead

 

Thanks

 

Nj

 

Link to comment
https://forums.phpfreaks.com/topic/108976-automatic-generate-search-details/
Share on other sites

Just have the script cross-check your "ideal match" table every time that someone signs up/updates their profile for people looking for someone like the person updating their profile.  Basically, run a 2nd query, that is something like this:

SELECT * FROM `ideal_match_table WHERE `age_range`='$my_age' AND `height` !> '$my_height' AND `height` !< '$my_height'......

something like that.

you can code this yourself. When you do your query from the DB. It would be something like this.

 

$query = "SELECT * FROM users WHERE idealmatch = 'female' AND ages = '20-23' AND height = '5-3 to 5-9' etc..

 

You would probably want linking tables as this would be a bit much for one table, but you get the idea. Then when the results come up empty for some poor slob. You just re-query the DB dropping off one by one whatever his/her ideal is until you find him/her a match! hehe

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.