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


PHP Query::where_eq方法代码示例

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


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

示例1: reset

 function reset($_oh, $_aid)
 {
     $c = new Query();
     $c->value("apply_id", "");
     $c->where_eq("oh_id", $_oh);
     $c->where_eq("apply_id", $_aid);
     $this->update($c);
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:8,代码来源:Office_hours_terms.php

示例2: Query

 function del_by_user($_cid, $_uid)
 {
     $this->debug();
     $c = new Query();
     $c->where_eq("user_id", $_uid);
     $c->where_eq("id", $_cid);
     $this->delete_cond($c);
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:8,代码来源:Member_project.php

示例3: Query

 function get_by_form($_aid, $_eid)
 {
     // $this->debug();
     $c = new Query();
     $c->where_eq("apply_id", $_aid);
     $c->where_eq("form_id", $_eid);
     $res = $this->fetch_one("*", $c);
     return $res;
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:9,代码来源:Office_hours_apply_etc.php

示例4: Query

 function get_follower($_type = '', $_id = '')
 {
     //        $this->debug();
     $c = new Query();
     $c->where_eq("follower", $_id);
     if ($_type) {
         $c->where_eq("type", $_type);
     }
     $res = $this->fetch("*", $c);
     return $res;
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:11,代码来源:Follow.php

示例5: Query

 function edit_by_fb($_arr)
 {
     $c = new Query();
     $c->value("ids", $_arr["ids"]);
     $c->value("secret", $_arr["secret"]);
     $c->value("date_created", "now()", 1);
     if ($_arr["public"]) {
         $c->value("public", $_arr["public"]);
     }
     $c->where_eq("user_id", $_arr["user_id"]);
     $c->where_eq("type", $_arr["type"]);
     $this->update($c);
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:13,代码来源:Member_ext.php

示例6: Query

 function cnt_by_opt($_tid, $_cid, $_where = '')
 {
     // $this->debug();
     $c = new Query();
     $c->from = "recruit r, recruit_opt ro";
     $c->where("ro.recruit_id = r.id");
     $c->where_eq("code_type", $_tid);
     $c->where_eq("code_id", $_cid);
     if ($_where) {
         $c->where($_where);
     }
     $res = $this->counts($c);
     return $res;
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:14,代码来源:Recruit_opt.php

示例7: check

 function check($_type)
 {
     $c = new Query();
     $c->where_eq("name", $_type);
     $res = $this->fetch_one("id", $c);
     return $res;
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:7,代码来源:Event_type.php

示例8: edit

 function edit($_id, $_state)
 {
     $c = new Query();
     $c->value("visible", $_state);
     $c->where_eq("id", $_id);
     $this->update($c);
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:7,代码来源:Member_grade.php

示例9: Query

 function del_form_res($_aid)
 {
     $c = new Query();
     $c->from = "competitions_form_res";
     $c->where_eq("apply_id", $_aid);
     $this->delete_cond($c);
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:7,代码来源:Competitions_form.php

示例10: add

 function add($_arr)
 {
     // $this->debug();
     $c = new Query();
     $c->value("dates", $_arr["dates"]);
     $c->value("times", $_arr["times"]);
     $c->value("url", $_arr["url"]);
     $c->value("img", $_arr["img"]);
     $c->value("title", str_replace('\'', '\'', $_arr["title"]));
     $c->value("subtitle", str_replace('\'', '\'', $_arr["subtitle"]));
     $c->value("author", str_replace('\'', '\'', $_arr["author"]));
     $c->value("publisher", str_replace('\'', '\'', $_arr["publisher"]));
     $c->value("c_date", $_arr["c_date"]);
     $c->value("tags", str_replace('\'', '\'', $_arr["tags"]));
     $c->value("mento_img", $_arr["mento_img"]);
     $c->value("mento_name", str_replace('\'', '\'', $_arr["mento_name"]));
     $c->value("mento_endor", str_replace('\'', '\'', $_arr["mento_endor"]));
     if ($_arr["id"]) {
         $c->where_eq("id", $_arr["id"]);
         $this->update($c);
         $id = $_REQUEST["id"];
     } else {
         $this->insert($c);
         $id = $this->last_id();
     }
     return $id;
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:27,代码来源:Books.php

示例11: Query

 function add_error($_id)
 {
     $c = new Query();
     $c->where_eq('id', $_id);
     $c->value('error_cnt', 'error_cnt+1', true);
     $this->update($c);
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:7,代码来源:model.php

示例12: Query

 function get_by_mento($_id)
 {
     // $this->debug();
     $c = new Query();
     $c->where_eq("mento_id", $_id);
     $res = $this->fetch("*", $c);
     return $res;
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:8,代码来源:Office_mento_form.php

示例13: edit

 function edit($_id, $_type, $_cid)
 {
     $c = new Query();
     $c->value("type", $_type);
     $c->value("cid", $_cid);
     $c->where_eq("id", $_id);
     $this->update($c);
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:8,代码来源:Main.php

示例14: Query

 function get_by_mento($_id)
 {
     $c = new Query();
     $c->where_eq("mento_id", $_id);
     $c->order = "id ASC";
     $res = $this->fetch("*", $c);
     return $res;
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:8,代码来源:Office_mento_bios.php

示例15: Query

 function get_by_apply($_id)
 {
     $c = new Query();
     $c->where_eq("apply_id", $_id);
     $c->order = "id ASC";
     $res = $this->fetch("file", $c);
     return $res;
 }
开发者ID:byyeong,项目名称:dc2016,代码行数:8,代码来源:Competitions_files.php


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