Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include'config.php';
- $res=mysql_query("select * from userreview");
- $i=0;
- while($result=mysql_fetch_row($res))
- {
- $data[$i]=array("username"=>$result[0],"comment"=>$result[1]);
- $i++;
- }
- echo json_encode($data);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement