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

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -