J
J
JustMuve2018-05-04 22:11:24
In contact with
JustMuve, 2018-05-04 22:11:24

method wall.getById how to get display?

<?php
$records_json=file_get_contents("https://api.vk.com/method/wall.getById?posts=-89869543_17797&extended=0&v=5.60");
$records=json_decode($records_json, true);
 
foreach($records['response'] as $record) {
    echo "<li id='".$record['id']."'>".$record['text']."";
    if (isset($record['attachment']['photo']['src_big']))
    echo "<p><img src='".$record['response'][0]['photo_604']."'></p>";
    echo "</li>";
}
?>

as a result, it shows only the text, but the photo does not display (how to display all 7 photos from the record)
please help with the output of the photo, thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question