php - Displaying JSON data posts for blog using just the post id -
i have page named 'posts_list.php' containing list of blog posts retrieved form json api have id, title, image etc . have link on page goes page called 'post.php' below:
<a href="post.php?id=<?php echo $post->id ?> ">
using method can retrieve 'id' of post clicked user using:
<?php $postid = $_get['id']; ?>
what want display json post on post.php corresponds id retrieved link on posts_list.php
i know sql use clause, being new json im not sure if possible. need achieve php , json
it has info
/v1/blogs/@blog/@id
@blog - blog identifier @id - blog post id
Comments
Post a Comment