<?php
$mysqli=new mysqli();
$mysqli->connect('localhost','root','root','db_user');
$mysqli->set_charset("utf8");
$sql="select * from tb_user";
$rs=$mysqli->query($sql);
while($row=mysqli_fetch_array($rs,MYSQLI_ASSOC)){
$c=$row['username'];
echo "$c";
}
$mysqli=new mysqli();
$mysqli->connect('localhost','root','root','db_user');
$mysqli->set_charset("utf8");
$sql="select * from tb_user";
$rs=$mysqli->query($sql);
while($row=mysqli_fetch_array($rs,MYSQLI_ASSOC)){
$c=$row['username'];
echo "$c";
}