there are tables 'Content' and 'Rettig_Content', records are stored in the first one, and the second assessment of these records, you need to make a rating, in order to sort and display the first records with the highest rating - this is the amount / quantity
Tabls: Content: ------|-----------|------------------|--------|----------| id | title | description | img | datetime | ------|-----------|------------------|--------|----------| 1 | TEXT | TEXT | TEXT | DATETIME | ------|-----------|------------------|--------|----------| 2 | TEXT | TEXT | TEXT | DATETIME | ------|-----------|------------------|--------|----------| 3 | TEXT | TEXT | TEXT | DATETIME | ------|-----------|------------------|--------|----------| Rettig_Content: ------|-----------|------------------|--------| id | user_id | content_id | voice | ------|-----------|------------------|--------| 1 | 44566 | 1 | 5 | ------|-----------|------------------|--------| 2 | 23566 | 1 | 3 | ------|-----------|------------------|--------| 3 | 55566 | 1 | 3 | ------|-----------|------------------|--------| 4 | 44566 | 3 | 5 | ------|-----------|------------------|--------|