im trying to display only one value of my database if the value is duplicate/multiple or have the same value in another row
example database
id | name | section
1 | ron | ABC
2 | mark | B12
3 | nick | B12
this my php code:
$sql = "SELECT * FROM myusers";
$result = mysqli_query($conn, $sql);
while($rows = mysqli_fetch_array($result))
{
echo "$rows['section']";
}
Output : ABC B12 B12
i want output like this ABC B12