include("../library/_include.php"); $section = "news"; $page_title = "Case Details"; $id = write($_GET['id']); include("../header.php"); $result2 = mysql_query("SELECT * FROM t_item WHERE id = '$id'") or die(mysql_error()); $myrow = mysql_fetch_array($result2); $id = $myrow["id"]; $name = $myrow["name"]; $cat_id = $myrow["cat_id"]; $date_order = $myrow["date_order"]; $body = make_clickable($myrow["body"]); $pics_exist = db_detail('id','t_picture','item_id',$id); echo "
".subcats($cat_id,$id)." | ||
".button("javascript:history.go(-1)","<< Go Back","","","")."
$name Published: ".date_order_format($date_order,1)." $body |
";
if($pics_exist)
{
echo "
".picture('picture',$id,'news',280,280,'','1')."
";
$result_pic = mysql_query("SELECT * FROM t_picture WHERE item_id='$id'") or die(mysql_error());
if ($myrow = mysql_fetch_array($result_pic))
{
echo "
Click thumbnails to view larger versions:
"; } echo " | ";
}
echo "