News
query($q); $sth->execute(); while ($row = $sth->fetch(PDO::FETCH_ASSOC)) { extract($row); // $news_entry_datetime = strtotime($news_entry_datetime); $news_entry_display_datetime = strtotime($news_entry_display_datetime); $news_entry_date_str = date("D, M j", $news_entry_display_datetime); $news_entry_text = stripslashes($news_entry_text); $news_entry_title = stripslashes($news_entry_title); $news_entry_url_encode = urlencode($news_entry_url); $news_entry_full_url = "http://www.katieherzig.com/news.html?entry=" . $news_entry_url; $news_entry_full_url_encode = urlencode($news_entry_full_url); $news_entry_title_encode = htmlspecialchars($news_entry_title); echo "
"; echo "
$news_entry_title
"; echo "
$news_entry_date_str"; if (userIsAdmin()) { echo "  "; } echo "
"; if ($news_entry_media_filename <> "") { if (file_exists("_images/uploads/" . $news_entry_media_filename)) { echo "
"; if ($news_entry_media_link <> "") { echo ""; } else { echo ""; } echo "
"; } } echo "
"; echo "
"; echo "$news_entry_text"; echo "
"; echo "
"; echo "
"; // echo "
"; } ?>