get_results($sql)) { echo ""; } else { echo "

Sorry there are no $page_title articles.

"; } } else { if (isset($_GET['article'])) { $url = "&article=". $_GET['article']; } if (isset($_GET['article']) && is_numeric($_GET['article'])) { $sql_extra = "WHERE YourSayID = '". $_GET['article'] ."'"; } $sql = "SELECT * FROM yoursay $sql_extra ORDER BY YourSayWrittenDate DESC LIMIT 1"; if ($row = $db->get_row($sql)) { echo "

$row->YourSayTitle

Written: ". ic_date2String($row->YourSayWrittenDate) ."  | Last Updated: ". ic_date2String(ic_timestamp2Date($row->YourSayLastUpdated,"%Y-%m-%d")) ."

"; $delim = array("
", '
', '
'); $body = str_replace($delim, '-+delim+-', $row->YourSayBody); $pages = explode('-+delim+-',$body); // print_a($pages); if (!is_numeric($_GET['page'])) { $_GET['page'] = 1; } echo $pages[$_GET['page']-1]; echo "

Page: "; for ($i = 1; $i <= count($pages); $i++) { if ($_GET['page'] == $i) { echo " $i "; } else { echo " $i "; } } echo "

Print friendly version

View $page_title Archives

"; } else { echo "

Sorry there are no $page_title articles.

"; } } include 'footer.inc'; ?>