2) { // we're trying to show a specific post. $posturi = sanitize_string(array_pop($path_parts)); $postid = sanitize_dbid(array_pop($path_parts)); $results = db_query('select * from posts where postid=?', 'i', [$postid]); if ($results === false || $results->num_rows === 0) { die_with_404(); } $post = $results->fetch_assoc(); } $title = $post['title'] ?? 'Money Blog'; set_page_title("$title | In A Day"); include('header.php'); ?>
Home / Money Blog

10bii icon
Note: You can use any financial calculator to do this problem, but if you want the BEST, you can get our 10bii Financial Calculator for iOS, Android, Mac, and Windows!
fetch_assoc()): ?> \n"; } ?>

\n"; ?>
  • num_rows > 0) { $prev = $results->fetch_assoc(); } $results = db_query( 'select postid, uri from posts where postdate >= ? and postid != ? order by postdate, postid limit 1', 'si', [$post['postdate'], $post['postid']] ); if ($results !== false && $results->num_rows > 0) { $next = $results->fetch_assoc(); } ?>