"; if(isset($_GET['cid']) && $_GET['cid'] > 0){ $cid = intval($_GET['cid']); $result = mysql_query("SELECT * FROM `cases` WHERE `id` = $cid") or die(mysql_error()); } else{ $month = date("n"); $year = date("Y"); $result = mysql_query("SELECT * FROM `cases` WHERE `date` = '$month-$year'") or die(mysql_error()); } if(mysql_num_rows($result) == 0){ echo "
Bu ay için vaka girişi yapılmamıştır
"; } else{ $row = mysql_fetch_assoc($result); foreach ($row as $key => $val) $row[$key] = stripslashes($val); extract($row, EXTR_OVERWRITE|EXTR_PREFIX_ALL, "cases"); $dt = explode("-",$cases_date); $dtt = $_ay[$dt[0]]." ".$dt[1]; echo "
$dtt
\n"; echo "$cases_title

$cases_content

\n"; } include "footer.php"; ?>