Hi,
I'm building a dating website and have come across a bridge in my coding that I'm having difficulty crossing.
I'm trying to order the result of a query according to a scoring system.
Example:
If blond hair 1 point. If black hair 2 points.
If <20 years old 3 point. If >20 years old 4 points.
If <160cm 1 point. If >160cm 3 points.
Order query result according to the scoring rule above.
How does one go about coding a scoring method for something like this?
Am using PHP4 and MySQL.
Thanks,
Raj