HashPassword($_POST['password']); setUserInfo($db, $session_user["0"]["userid"], $_POST['firstname'], $_POST['lastname'], $_POST['email'], $session_user["0"]["usertypeid"], $password); header('Location: ' . $_SERVER['PHP_SELF']); endif; endif; // Set up pagination $page_num = 1; if(!empty($_GET['pnum'])): $page_num = filter_input(INPUT_GET, 'pnum', FILTER_VALIDATE_INT); if(false === $page_num): $page_num = 1; endif; endif; $offset = ($page_num - 1) * $rowsperpage; $row_count = count(listPunches($db, $session_user["0"]["userid"])); $page_count = 0; if (0 === $row_count): else: $page_count = (int)ceil($row_count / $rowsperpage); if($page_num > $page_count): $page_num = 1; endif; endif; ?>

" readonly /> " readonly /> " readonly />
" /> " /> " />

' . $i . ' '; endif; endfor; ?>