I am displaying data from database using PHP. I am using JSON. but during result, I got unwanted array. This is sample:
while($row = mysql_fetch_array($result))
{
echo "<pre>"; print_r($row); echo "</pre>";
//$output[]=$row;
}
Output:
Array
(
[0] => Ravi Ad
[title] => Ravi Ad
)
Here I saw , a extra column is displaying name [0]. i hate it and making problem in parsing . May any once can remove it ? i am trying this result:-
Array
(
[title] => Ravi Ad
)
thank you