Example #1
0
 /**
  * 用户节下练习数据
  */
 public function getUserSectionPractise($uid, $sectionId)
 {
     $tbl = new DB_Haodu_UserPractise();
     $all = $tbl->fetchAll("*", "where uid={$uid} and section_id={$sectionId}");
     return $all;
 }
Example #2
0
 /**
  * 用户练习纪录
  */
 public function insertUserPractise($uid, $courseId, $sectionId, $spendTime, $correctNum)
 {
     $time = time();
     $data = array("uid" => $uid, "course_id" => $courseId, "section_id" => $sectionId, "spend_time" => $spendTime, "create_time" => $time, "correct_num" => $correctNum);
     $tbl = new DB_Haodu_UserPractise();
     return $tbl->insert($data);
 }