function FindPaperQuestion($paperName) { include_once '../DAL/paperDal.php'; include_once '../DAL/questionDal.php'; $paperID = 0; $paperInfo = FindPaperByPaperName($paperName); foreach ($paperInfo as $single) { $paperID = $single[0]; } $questionInfo = FindQuestionByPaperID($paperID); return $questionInfo; }
function CreatQuestionNum($paperID) { $result = FindQuestionByPaperID($paperID); $questionNum = count($result) + 1; return $questionNum; }