I am trying to store the result of SQL query in an array.I am not able to use that result,however i can print it using print_r() method of php and it is printing-
Array
(
[0] => Array
(
[SNO] => 1
[chartType] => pie
[outputValues] => rural_total_m,urban_total_m
[attributeId] => 10025
[level] => india
)
)
I want it to store in a variable or a file in the form of--
Array(
SNO => 1,
chartType => pie,
outputValues => rural_total_m,urban_total_m,
attributeId => 10025,
level => india
)
I have tried few thing but nothing like i want till now! :( Thank You!