當前位置: 首頁>>代碼示例>>PHP>>正文


PHP config::dbconfig方法代碼示例

本文整理匯總了PHP中config::dbconfig方法的典型用法代碼示例。如果您正苦於以下問題:PHP config::dbconfig方法的具體用法?PHP config::dbconfig怎麽用?PHP config::dbconfig使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在config的用法示例。


在下文中一共展示了config::dbconfig方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getPrimaryValue

 public static function getPrimaryValue($table, $primary_coloumns, $primaryId, $select_valuecoloumn)
 {
     $db = config::dbconfig();
     $filed = "";
     $sql = "SELECT * FROM " . $table . " where " . $primary_coloumns . "=" . $primaryId;
     $rs = mysql_query($sql) or die(mysql_error());
     while ($row = mysql_fetch_array($rs)) {
         $filed = $row[$select_valuecoloumn];
     }
     if ($filed != "") {
         $obj_retresult->type = 1;
         $obj_retresult->data = $filed;
     } else {
         $obj_retresult->type = 0;
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:17,代碼來源:DAL_manageAutocomplete.php

示例2: disablePerson_languageskill

 public static function disablePerson_languageskill($LangSkillId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_person_languageskill SET Status=0 WHERE  LangSkillId=" . $LangSkillId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Person_languageskill;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_managePerson_languageskill.php

示例3: disableAgriculture

 public static function disableAgriculture($AgricultureId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_Agriculture SET Status=0 WHERE  AgricultureId=" . $AgricultureId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Agriculture;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_manageAgriculture.php

示例4: disableGroupmissiontype

 public static function disableGroupmissiontype($GroupMissionTypeId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_groupmissiontype SET Status=0 WHERE  GroupMissionTypeId=" . $GroupMissionTypeId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Groupmissiontype;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_manageGroupmissiontype.php

示例5: disableVillage_trading

 public static function disableVillage_trading($BusinessId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_village_trading SET Status=0 WHERE  BusinessId=" . $BusinessId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Village_trading;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_manageVillage_trading.php

示例6: disablePerson_vocationaltraining

 public static function disablePerson_vocationaltraining($VocationalTrainId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_person_vocationaltraining SET Status=0 WHERE  VocationalTrainId=" . $VocationalTrainId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Person_vocationaltraining;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_managePerson_vocationaltraining.php

示例7: disableFile_repository

 public static function disableFile_repository($_id)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_File_repository SET Status=0 WHERE  _id=" . $_id;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_File_repository;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_manageFile_repository.php

示例8: disableOrganization_subtype

 public static function disableOrganization_subtype($OrganizationSubTypeId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_Organization_subtype SET Status=0 WHERE  OrganizationSubTypeId=" . $OrganizationSubTypeId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Organization_subtype;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_manageOrganization_subtype.php

示例9: getLastSessionId

 public static function getLastSessionId()
 {
     $lastID = 0;
     $db = config::dbconfig();
     $sql = "SELECT MAX(id) FROM tbl_webservicecall";
     $rs = mysql_query($sql);
     if ($row = mysql_fetch_row($rs)) {
         $lastID = is_null($row[0]) ? 0 : $row[0];
     }
     return $lastID;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:11,代碼來源:DAL_manageWebService.php

示例10: disableHigherstudysubjects

 public static function disableHigherstudysubjects($SubjectId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_Higherstudysubjects SET Status=0 WHERE  SubjectId=" . $SubjectId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Higherstudysubjects;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_manageHigherstudysubjects.php

示例11: disableVillage_geologicalvariation

 public static function disableVillage_geologicalvariation($TblId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_village_geologicalvariation SET Status=0 WHERE  TblId=" . $TblId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Village_geologicalvariation;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_manageVillage_geologicalvariation.php

示例12: disableTraditionalknowledgecategory

 public static function disableTraditionalknowledgecategory($CategoryId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_Traditionalknowledgecategory SET Status=0 WHERE  CategoryId=" . $CategoryId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Traditionalknowledgecategory;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_manageTraditionalknowledgecategory.php

示例13: disableBusiness_product

 public static function disableBusiness_product($ProductId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_business_product SET Status=0 WHERE  ProductId=" . $ProductId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Business_product;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_manageBusiness_product.php

示例14: disableSociety_member

 public static function disableSociety_member($MemberId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_Society_member SET Status=0 WHERE  MemberId=" . $MemberId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Society_member;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_manageSociety_member.php

示例15: disablePrimarygeolayertype

 public static function disablePrimarygeolayertype($PrimaryGeoLayerTypeId)
 {
     $db = config::dbconfig();
     $obj_retresult = new returnResult();
     $sql = "UPDATE tbl_Primarygeolayertype SET Status=0 WHERE  PrimaryGeoLayerTypeId=" . $PrimaryGeoLayerTypeId;
     $rs = mysql_query($sql);
     if (mysql_affected_rows() > 0) {
         $obj_retresult->type = 1;
         $obj_retresult->data = $obj_Primarygeolayertype;
         $obj_retresult->msg = "success";
     } else {
         $obj_retresult->type = 0;
         $obj_retresult->msg = "failed";
     }
     return $obj_retresult;
 }
開發者ID:pathumego,項目名稱:easykarma,代碼行數:16,代碼來源:DAL_managePrimarygeolayertype.php


注:本文中的config::dbconfig方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。