Esempio n. 1
0
 public function update($arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $req = array();
     $req[0] = array('Course_ID', $this->Course_ID);
     $table = 'course';
     $sql = $db->genUpdateSql($req, $arg, $table);
     $db->query($sql);
     $db->close();
 }
Esempio n. 2
0
 public function update($arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $table = 'message';
     //#########################
     $req = array('message_id' => $this->message_id);
     $sql = $db->genUpdateSql($req, $arg, $table);
     $db->query($sql);
     $db->close();
 }
Esempio n. 3
0
 public function update($arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $table = 'stu_evaluate';
     //#########################
     $req = array();
     $req[0] = array('Stu_ID' => $this->Stu_ID, 'Course_year_term' => $this->Course_year_term);
     $sql = $db->genUpdateSql($req, $arg, $table);
     $db->query($sql);
     $db->close();
 }
 public function update($arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $table = 'stu_union_member';
     //#########################
     $req = array();
     $req[0] = array('Group_ID' => $this->Group_ID, 'Stu_ID' => $this->Stu_ID);
     $sql = $db->genUpdateSql($req, $arg, $table);
     $db->query($sql);
     $db->close();
 }
Esempio n. 5
0
 public function update($arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $table = 'teacher_identification_info';
     //#########################
     $req = array();
     $req[0] = array('Tea_ID' => $this->Tea_ID);
     $sql = $db->genUpdateSql($req, $arg, $table);
     $db->query($sql);
     $db->close();
 }
Esempio n. 6
0
 public function update($arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $table = 'res_group_log';
     //#########################
     $req = array();
     $req[0] = array('Log_ID' => $this->Log_ID);
     $sql = $db->genUpdateSql($req, $arg, $table);
     $db->query($sql);
     $db->close();
 }
Esempio n. 7
0
 public function update($arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $table = 'financial_account';
     //#########################
     $req = array();
     $req[0] = array('Money_id' => $this->Money_id);
     $sql = $db->genUpdateSql($req, $arg, $table);
     $db->query($sql);
     $db->close();
 }