arkadaşlar aşağıda yazılan kodun hangi alanına, yani hangi kod arasına kodları eklemem gerek ?

bu siteden aldım site

/*
Template Name: Tüm Konular
*/
?>



” rel=”bookmark” title=”Permanent Link to ”>


?>


yapmak istediğim şeyaşağıdaki kodu yukarıdaki koda entegre etmek

/* This predictor is your for free by EverydayVBabies.com. You have no obligations for anything - you can modify, redistribute, sell it or whatever you want to do.
We will appreciate if you don't remove the link at the bottom, but that's not required. */

/* Feel free to modify the CSS and the texts below. - no problem at all. Just don't touch the PHP code or the specual codes which are surrounded with %% unless you know what you are doing. */
error_reporting(E_ALL&(~E_NOTICE));
@session_start();
?>

// present the calculator table as multi-dimentional PHP array
$table=array(
"18"=>array("",'f','m','f','m','m','m','m','m','m','m','m','m'),
"19"=>array("",'m','f','m','f','f','m','m','m','m','m','f','f'),
"20"=>array("",'f','m','f','m','m','m','m','m','m','f','m','m'),
"21"=>array("",'m','f','f','f','f','f','f','f','f','f','f','f'),
"22"=>array("",'f','m','m','f','m','f','f','m','f','f','f','f'),
"23"=>array("",'m','m','f','m','m','f','m','f','m','m','m','f'),
"24"=>array("",'m','f','m','m','f','m','m','f','f','f','f','f'),
"25"=>array("",'f','m','m','f','f','m','f','m','m','m','m','m'),
"26"=>array("",'m','f','m','f','f','m','f','m','f','f','f','f'),
"27"=>array("",'f','m','f','m','f','f','m','m','m','m','f','m'),
"28"=>array("",'m','f','m','f','f','f','m','m','m','m','f','f'),
"29"=>array("",'f','m','f','f','m','m','m','m','m','f','f','f'),
"30"=>array("",'m','f','f','f','f','f','f','f','f','f','m','m'),
"31"=>array("",'m','f','m','f','f','f','f','f','f','f','f','m'),
"32"=>array("",'m','f','m','f','f','f','f','f','f','f','f','m'),
"33"=>array("",'f','m','m','m','f','f','f','m','f','f','f','m'),
"34"=>array("",'m','f','m','f','f','f','f','f','f','f','m','m'),
"35"=>array("",'m','m','f','m','f','f','f','m','f','f','m','m'),
"36"=>array("",'f','m','m','f','m','f','f','f','m','m','m','m'),
"37"=>array("",'m','f','m','m','f','m','f','m','f','m','f','m'),
"38"=>array("",'f','m','f','m','m','f','m','f','m','f','m','f'),
"39"=>array("",'m','f','m','m','m','f','f','m','f','m','f','f'),
"40"=>array("",'f','m','f','m','f','m','m','f','m','f','m','f'),
"41"=>array("",'m','f','m','f','m','f','m','m','f','m','f','m'),
"42"=>array("",'f','m','f','m','f','m','f','m','m','f','m','f'),
"43"=>array("",'m','f','m','f','m','f','m','f','m','m','m','m'),
"44"=>array("",'m','m','f','m','m','m','f','m','f','m','f','f'),
"45"=>array("",'f','m','m','f','f','f','m','f','m','f','m','m')
);

$new_years=array("2008"=>"February 7, 2008","2009"=>"January 26, 2009", "2010"=>"February 10, 2010",
"2011"=>"February 3, 2011","2012"=>"January 23, 2012","2013"=>"February 10, 2013",
"2014"=>"January 31, 2014", "2015"=>"February 19, 2015", "2016"=>"February 9, 2016",
"2017"=>"January 28, 2017", "2018"=>"February 16, 2018", "2019"=>"February 5, 2019",
"2020"=>"January 25, 2020");

if(!empty($_POST['calculator_ok']))
{
// save in session to be used when the link "calculate again" is clicked
foreach($_POST as $key=>$var) $_SESSION["calc_".$key]=$var;

// calculate mother's lunar age
if(date("n")<=$_POST['month'])
{
// conceived this year
$year_conceived=date("Y")-1;
}
else
{
$year_conceived=date("Y");
}

$new_year=$new_years[$year_conceived];

// should I add 1 or 2 years to age?
if(strtotime($new_year)>strtotime($year_conceived."-".$_POST["month"]."-01"))
{
$addition=1;
}
else $addition=2;

$lunar_age=$_POST['age']+$addition;

// calculate the result
$result=$table[$lunar_age][$_POST['month']];

$gender=($result=='f')?"Girl":"Boy";

//the result is here
?>

Your lunar age of conception is .


You kid is most likely to be a


Calculate again



}
else
{
//the calculator comes here
?>









site adit




}
?>