Am new to PHP. I tried to fetch the elements from a table but it is getting stored as a single element in an array. I want each element in the column to be a separate element in the array.. Someone please help me with this..
$sql="select name from item_details";
$result=mysql_query($sql,$con);
if(!$sql)
echo "Query Failed".mysql_error();
while($arr=mysql_fetch_row($result))
{
echo $arr[0];
echo "<br>";
}