Mount a script of similar information (PHP, Procedure, etc.)

0

In a database I have cadastral information like:

  • age
  • color
  • weight

That of each person registered.

How to identify people who have exactly the same data on this basis?

In practice:

  • Edu, 46, white, 70kg
  • Bio, 46, white, 70kg - > this gave equal 100% .

  • Edu, 46, white, 70kg

  • Leo, 36, white, 60kg - > this gave equal 80%

Then the first option would be the one desired.

    
asked by anonymous 29.09.2017 / 04:05

1 answer

0

So I realized I want to do a search for all the users and then compare the information of each one.

For this you need to fetch all users from the database.

Here you can see everything you need to know in mysql if this is the case for PHP:

link

Then the part of the comparisons I recommend to do in php using the mysql_fetch_assoc functions, among others, to go through the information and make the comparisons due.

    
29.09.2017 / 11:45