(<-Back) Requested Article Not Found!"; //will display an error message } else { //some found $sp_page['body'] = $sp_page['body'] . ""; while ($db = mysql_fetch_array($query)) { $description = stripslashes($db['description']); $title = stripslashes($db['title']); $name = stripslashes($db['name']); $count = $db['count']; $date = $db['time']; $file = $db['file']; $text = stripslashes($db['text']); $category = stripslashes($db['category']); if ($page_num >= 2) { $new_page_num = " (page " . $page_num . ")"; } $new_count = $count + 1; $update_count = "UPDATE sa_page SET count = '$new_count' WHERE id = '$id' LIMIT 1"; @mysql_query($update_count) or die("Error updating: " . mysql_error()); if($file == null) { $sp_page['body'] = $sp_page['body'] . "
" . $title . "
\n
" . $date . "
\n

". $description . "

\n

" . $text . "\n

"; } else { $sp_page['body'] = $sp_page['body'] . "
" . $title . "
\n
" . $date . "
\n

". $description . "

\n

" . $text . "\n

  View PDF

\n "; } } } mysql_close(); //$sp_page['title'] = $cfg['site_title'] . "» " . $title; ?> Patricia Mendell, LCSW - Articles
Print
"; echo $sp_page['body']; // this will output the 'body' for the page ?>