PlainSQLiteBlog/pages/index.php

19 lines
344 B
PHP

<?php
global $c;
$strPath = "/";
$strPath .= implode("/", Request::getPathParts());
$varPosts = $c->query(
"SELECT *
from posts as p
where
location like ?
or location like '*'
order by
created desc",
$strPath);
?>
<?php PostRender::rows($varPosts); ?>