From 6f5eb97a5d2129427e831a9a4eb1fec318401356 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 17 May 2011 18:02:36 -0700 Subject: Made it prettier --- htdocs/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'htdocs/index.php') diff --git a/htdocs/index.php b/htdocs/index.php index a5f5456..6ac32ff 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -21,13 +21,16 @@ $posts->limit(5); $posts->query(); if ($posts->valid()) { + for ($i = 0; $i < 10; $i++) { foreach ($posts as $id => $post) { - printf("

%s

" + printf("

%s

" . "
%s" . " %s
", $id, $post->getName(), $post->getLocation(), $post->getAge()); } + } } else { echo "

No recent posts.

"; -- cgit v1.2.3