Skip to content

Commit

Permalink
edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
chakrit committed Sep 28, 2011
1 parent a414d35 commit abb7abe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.php
Expand Up @@ -2,6 +2,8 @@
include 'db.php';
include 'redis.php';

$model = array('posts' => array());

// load posts from database
$result = mysql_query("SELECT * FROM posts", $mysql);
while ($row = mysql_fetch_array($result)) {
Expand All @@ -14,7 +16,7 @@
?>
<html>
<body>
<h1>It works!</h1>
<h1>Posts!</h1>
<ul>
<?php foreach ($post in $model['posts']) { ?>
<li>
Expand Down

0 comments on commit abb7abe

Please sign in to comment.