Here is my code which is retrieving from db... and i stored that column values in array() variable...
$res1 = array();
while ($row = mysql_fetch_assoc($res)) {
$res1[$i] = $row['address'];
$i = $i + 1;
}
print_r($res1);
But problem is wen am trying to print this array it is printing as below:
"Array ( [0] => ameerpet [1] => panjagutta )"
but i need to print that array as below so that i can store in js variable for further using......
["ameerpet", "panjagutta"];