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


PHP DataProvider::Close方法代码示例

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


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

示例1: Delete

 public static function Delete($id)
 {
     $strSQL = "delete from dichvu_tienich where id='{$id}'";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:edconan93,项目名称:real-estate-website,代码行数:13,代码来源:DichVu_TienIchDAO.php

示例2: Delete

 public static function Delete($id)
 {
     $strSQL = "update cart set Delete_Flag=1 where ID='{$id}' ";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:realolliebee,项目名称:closes-shop,代码行数:13,代码来源:CartController.php

示例3: update

 public static function update($id, $loai, $khenthuong, $ngay)
 {
     $strSQL = "update khenthuong set loai={$loai},thuong='{$khenthuong}', ngay='{$ngay}' where id={$id}";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:edconan93,项目名称:real-estate-website,代码行数:13,代码来源:KhenThuongDAO.php

示例4: SetStatus

 public static function SetStatus($user_id, $status)
 {
     $strSQL = "update khanangban set status= '{$status}' where user_id={$user_id}";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:edconan93,项目名称:real-estate-website,代码行数:13,代码来源:KhaNangBanDAO.php

示例5: setStatusTinDang

 public static function setStatusTinDang($aid, $status)
 {
     $strSQL = "\tupdate dichvu set status={$status}\r\n\t\t\t\t\t\twhere id={$aid}";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:edconan93,项目名称:real-estate-website,代码行数:13,代码来源:TinDangDAO.php

示例6: Update

 public static function Update($id, $hoten, $sdt, $email, $diachi, $noidung, $ngayguitin, $status)
 {
     $strSQL = "update lienhe set hoten='{$hoten}', sdt='{$sdt}',email='{$email}',diachi='{$diachi}',noidung='{$noidung}',ngayguitin='{$ngayguitin}',\r\n\t\t\t\t\t\tstatus= '{$status}' where id={$id}";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:edconan93,项目名称:real-estate-website,代码行数:13,代码来源:LienHeDAO.php

示例7: add

 public static function add($sotien, $donvi, $congviec, $ngay, $nhanvien, $loai)
 {
     $strSQL = "Insert into thuchi values (NULL,{$sotien},{$donvi},'{$congviec}','{$ngay}',{$nhanvien},{$loai})";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = mysql_insert_id();
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:edconan93,项目名称:real-estate-website,代码行数:13,代码来源:ThuChiDAO.php

示例8: SetStatusTinVIP

 public static function SetStatusTinVIP($iddv, $value)
 {
     $strSQL = "\tupdate dichvuvip set status={$value}\r\n\t\t\t\t\t\twhere iddichvu={$iddv}";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:edconan93,项目名称:real-estate-website,代码行数:13,代码来源:DichVuVIPDAO.php

示例9: Delete

 public static function Delete($ID)
 {
     $strSQL = "update product_image set Delete_Flag=1\r\n                      where ID={$ID}";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:realolliebee,项目名称:closes-shop,代码行数:13,代码来源:ProductImageController.php

示例10: Update

 public static function Update($id, $chusohuu, $sdt, $email, $diachi, $sothang, $filename, $link)
 {
     $strSQL = "";
     if ($filename != null) {
         $strSQL = "\tupdate quangcao set chusohuu='{$chusohuu}', sdt='{$sdt}', email='{$email}', diachi='{$diachi}',\r\n\t\t\t\t\t\t\tsothang={$sothang}, hinhanh='{$filename}', link='{$link}'\r\n\t\t\t\t\t\t\twhere id={$id}";
     } else {
         $strSQL = "\tupdate quangcao set chusohuu='{$chusohuu}', sdt='{$sdt}', email='{$email}', diachi='{$diachi}',\r\n\t\t\t\t\t\t\tsothang={$sothang}, link='{$link}'\r\n\t\t\t\t\t\t\twhere id={$id}";
     }
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:edconan93,项目名称:real-estate-website,代码行数:18,代码来源:QuangCaoDAO.php

示例11: SetPassword

 public static function SetPassword($id, $password)
 {
     $password = md5($password);
     $strSQL = "update user set Password='{$password}' where ID='{$id}' ";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:realolliebee,项目名称:closes-shop,代码行数:14,代码来源:UserController.php

示例12: delete

 public static function delete($id)
 {
     $strSQL = "update dichvu set status=-1 where id={$id}";
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:edconan93,项目名称:real-estate-website,代码行数:13,代码来源:DichVuDAO.php

示例13: Update2

 public static function Update2($id, $hoten, $gioitinh, $diachi, $sdt1, $sdt2, $newpass, $ngaycapnhat)
 {
     $strSQL = "";
     if ($newpass != -1) {
         $strSQL = "\tupdate user set hoten='{$hoten}', gioitinh={$gioitinh}, diachi='{$diachi}',\r\n\t\t\t\t\t\t\t\tsdt1='{$sdt1}', sdt2='{$sdt2}', password='{$newpass}', ngaycapnhat='{$ngaycapnhat}' \r\n\t\t\t\t\t\t\twhere id={$id}";
     } else {
         $strSQL = "\tupdate user set hoten='{$hoten}', gioitinh={$gioitinh}, diachi='{$diachi}',\r\n\t\t\t\t\t\t\t\tsdt1='{$sdt1}', sdt2='{$sdt2}', ngaycapnhat='{$ngaycapnhat}' \r\n\t\t\t\t\t\t\twhere id={$id}";
     }
     $cn = DataProvider::Open();
     DataProvider::MoreQuery($strSQL, $cn);
     if (mysql_affected_rows() == 0) {
         $result = false;
     } else {
         $result = true;
     }
     DataProvider::Close($cn);
     return $result;
 }
开发者ID:edconan93,项目名称:real-estate-website,代码行数:18,代码来源:UsersDAO.php


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