I need one help.I need to join DB value as string with comma(,) separator using PHP and Mysql.I am explaining my table below.
db_order:
id name
1 Rahul
2 Raj
3 Shiv
4 Hari
$qry=mysqli_query($con,"select * from db_order");
while($row=mysqli_fetch_array($qry)){
$data[]=$row;
}
print_r($data);
From my table i need to join all name with comma(,) so that result should like this Rahul,Raj,Shiv,Hari by executing the query.Please help me.