Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code 1:
- $.each(data, function() {
- alert(this.idWallPosts);
- $(this.idWallPosts).appendTo('#main');
- });
- Code 2:
- $idWallPostsArray = array();
- foreach ($result->result() as $row) {
- $idWallPostArray = array();
- $idWallPostArray['idWallPosts'] = $row->idwallPosts;
- $idWallPostsArray[] = $idWallPostArray;
- }
- echo json_encode(array("idWallPosts" => $idWallPostsArray));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement