I am using the code below to return value from sql but the value is displayed 2 times.
$cc=mysqli_connect($server,$user,$pass);
mysqli_select_db($cc,$database);
$sql = "SELECT b_id FROM ``ub_per`` WHERE ``b_email`` = '$mail'";
$res = mysqli_query($cc,$sql);
$row = mysqli_fetch_array($res);
foreach($row as $value){
echo($value);
}
SELECT DISTINCT.mysqli_fetch_assoc