当前位置: 首页>>代码示例>>PHP>>正文


PHP POD::close方法代码示例

本文整理汇总了PHP中POD::close方法的典型用法代码示例。如果您正苦于以下问题:PHP POD::close方法的具体用法?PHP POD::close怎么用?PHP POD::close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在POD的用法示例。


在下文中一共展示了POD::close方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: update

 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();
 }
开发者ID:muzhiqiang,项目名称:school,代码行数:14,代码来源:courseItem.php

示例2: update

 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();
 }
开发者ID:muzhiqiang,项目名称:school,代码行数:14,代码来源:messageContentItem.php

示例3: update

 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();
 }
开发者ID:muzhiqiang,项目名称:school,代码行数:15,代码来源:studentAcademicItem.php

示例4: update

 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();
 }
开发者ID:muzhiqiang,项目名称:school,代码行数:15,代码来源:studentAssocationMemberItem.php

示例5: update

 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();
 }
开发者ID:muzhiqiang,项目名称:school,代码行数:15,代码来源:teacherIdentityItem.php

示例6: update

 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();
 }
开发者ID:muzhiqiang,项目名称:school,代码行数:15,代码来源:researchGroupLogItem.php

示例7: update

 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();
 }
开发者ID:muzhiqiang,项目名称:school,代码行数:15,代码来源:financialAccountItem.php

示例8: showScoreAction

 public function showScoreAction()
 {
     $sql1 = "select c.Course_ID,c.Course,sc.Score,c.Property,c.credit,c.intro from Course as c,Stu_Course as sc where c.Course_ID = sc.Course_ID and c.Course_year_term = {$_POST['Course_year_term']} and sc.Stu_ID = {$_POST['Account']}";
     require_once $_SERVER['DOCUMENT_ROOT'] . '/school' . '/model/pod.php';
     $pod = new POD();
     $pod->connect();
     $result = $pod->query($sql1);
     foreach ($result as $key => $value) {
         $where = $result[$key]['Course_ID'];
         $sql2 = "select Stu_ID from Stu_Course where Course_ID='{$where}' order by Score desc";
         $ids = $pod->query($sql2);
         foreach ($ids as $rank => $id) {
             if ($id['Stu_ID'] == $_POST['Account']) {
                 $result[$key]['rank'] = $rank + 1;
                 break;
             }
         }
     }
     $pod->close();
     return json_encode($result);
 }
开发者ID:muzhiqiang,项目名称:school,代码行数:21,代码来源:score.php


注:本文中的POD::close方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。