I am trying to get some rows from database as bellow
$result = $conn->query($sql);
$rows = $result->fetch_assoc();
$rows is a set of associative array , and converting it to json object as bellow
$json_string = json_encode($rows);
I wish to print all rows value in JAVASCRIPT. is it possible ?
JSON.parse()