session_start();
include "shared.php";
initialise();
?>
insertHead("CRUMB - News Detail");
?>
function initialise(){
$_SESSION['lastLoc']=$_SERVER['REQUEST_URI'];
if ($_SESSION['searchDisc']==$nothing){
$_SESSION['searchDisc']=1;
}
global $searchTerm, $focus, $searchTermNOSP, $documentName, $documentBody, $link_id;
$searchTerm=$_GET['search']." ";
$searchTermNOSP=$_GET['search'];
$_SESSION['searchDisc']=$_GET['searchDisc'];
global $mypage, $scanText;
$mypage=$_SERVER['REQUEST_URI'];
$scanText="";
$id=$_GET[id];
selectDatabase('coredatabase');
$SQL="SELECT * FROM newsdb WHERE id=$id";
$result=mysql_query($SQL, $link_id);
$thisRow=mysql_fetch_row($result);
$authID=$row[1];
$title=$thisRow[2];
$date=$thisRow[3];
$body=$thisRow[4];
$fullBody=$thisRow[4].$thisRow[5];
$body=str_replace(chr(13), "
", $body);
$fullBody=str_replace(chr(13), "
", $fullBody);
//$body=str_replace(chr(10), "
", $body);
//$fullBody=str_replace(chr(10), "
", $fullBody);
$documentName="$title
$body
";
$documentBody="$fullBody";
}
?>
function insertNewsDetail(){
global $searchTerm, $focus, $searchTermNOSP, $documentName, $documentBody, $link_id;
?>
}
?>