query('set names utf8;'); $result = $con->query($str); $data=array(); while ($tmp=mysqli_fetch_assoc($result)) { $data[]=$tmp; } ?>