how to delete row in mysql when duplicated with other row ?
i want to create page delete_duplicate.php
when i load pagr delete_duplicate.php
it's will be delete row id 3 and 4
because row id 3 duplicate row id 2 and row id 4 duplicate row id 1
How to write that code [php] ?
Before load page delete_duplicate.php------table : member
____________________________________
|__likeid__|__userid__|__product_id__|
|____1_____|__100261__|____aaaaaa____|
|____2_____|__100005__|____bbbbbb____|
|____3_____|__100005__|____bbbbbb____|
|____4_____|__100261__|____aaaaaa____|
|____5_____|__100261__|____cccccc____|
After load page delete_duplicate.php------table : member
____________________________________
|__likeid__|__userid__|__product_id__|
|____1_____|__100261__|____aaaaaa____|
|____2_____|__100005__|____bbbbbb____|
|____5_____|__100261__|____cccccc____|