while($row = mysql_fetch_assoc($result)) { $data[] = $row; } echo json_encode($data);
console.log(data); var myData = JSON.parse(data);//this making error:( console.log(typeof myData);
var myData = JSON.parse(data);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)