SHOW:
|
|
- or go back to the newest paste.
| 1 | function get_cirle() | |
| 2 | {
| |
| 3 | $sql = "SELECT receive_type,pengunjung FROM tbl_circle "; | |
| 4 | $result9 = mysql_query($sql); | |
| 5 | - | $data9 = array(); |
| 5 | + | $data = array(); |
| 6 | while ($row = mysql_fetch_array($result9)) | |
| 7 | {
| |
| 8 | - | $data9 = "'".$row['receive_type']."'".",".$row['pengunjung']; |
| 8 | + | $data9 = array($row['receive_type'] , $row['pengunjung']; |
| 9 | $data[] = $data9; | |
| 10 | } | |
| 11 | - | for($ii=0;$ii<count($data);$ii++) |
| 11 | + | echo json_encode($data); |
| 12 | - | {
|
| 12 | + |