She really couldn't think of another way to count down a year...?
echo '<option value="'.date('Y').'">'.date('Y').'</option>';
for ($i=1; $i<=100; $i++) {
$year_wanted='-'.$i.' year';
$year_inpast=date('Y',strtotime($year_wanted));
echo '<option value="'.$year_inpast.'">'.$year_inpast.'</option>';
}
if ( count($set2) >= 1 )
{
$test = 0;
}
else
{
$test = 0;
}
$data = array();
$data = array(
'patient_id' => $id,
'video_id' => $videoid,
'created_date' => $date . ' ' . $time,
'created_by' => 0,
'sch_id' => $schid
);
if ( is_array($data) !== false )
{
...