So I am getting data from my table and I used a while loop for it but there are duplicates being printed out. How to fix it?
Here is my script/code:

$db= mysqli_connect('localhost', 'root', '',...