Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ongoing doc

  • Loading branch information...
commit 89d9664d69e31c79ee5f8739232933f45c98b0ed 1 parent 933a28f
@mstdokumaci authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/readme.md
View
6 doc/readme.md
@@ -127,13 +127,13 @@ We can list all users with posts and their likers in a simple loop:
echo '<h2>Posts: </h2>' . "\n";
echo '<ul>' . "\n";
- foreach ($user['post'] as $pid) {
+ foreach ($user['posts'] as $pid) {
//load post of user
$post=$adb->load('post', $pid);
$likers=array();
- foreach ($post['liker'] as $liker) {
+ foreach ($post['likers'] as $lid) {
// load liker of post
- $liker=$adb->load('user', $liker);
+ $liker=$adb->load('user', $lid);
$likers[]=$liker['name'];
}
$likers=(count($likers)) ? '<br />' . implode(', ', $likers) . ' liked.' : '';
Please sign in to comment.
Something went wrong with that request. Please try again.