'', 'month' => 1, 'year' => date('Y', strtotime('now - 10 years')), 'graduated' => false]; if (isset($childid) && $database->has('people', ['personid' => $childid])) { $randomid = $childid; $chinfo = $database->get('people', ['name', 'birthday', 'graduated'], ['personid' => $childid]); $childinfo['name'] = $chinfo['name']; $childinfo['graduated'] = $chinfo['graduated'] == true; $childinfo['month'] = date('m', strtotime($chinfo['birthday'])); $childinfo['year'] = date('Y', strtotime($chinfo['birthday'])); } else { do { $randomid = mt_rand(0, 9999999999); } while ($database->has('people', ['personid' => $randomid])); } ?>
>