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


PHP DataProvider::Query方法代碼示例

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


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

示例1: getTinhById

 public static function getTinhById($id)
 {
     $strSQL = "select *\r\n\t\t\t\t\tfrom tinh where id={$id}";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     return mysql_fetch_row($result, MYSQL_BOTH);
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:9,代碼來源:TinhDAO.php

示例2: GetAdvByID

 public static function GetAdvByID($id)
 {
     $strSQL = "\tselect * from quangcao\r\n\t\t\t\t\t\twhere id='{$id}'";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     return mysql_fetch_array($result, MYSQL_BOTH);
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:9,代碼來源:QuangCaoDAO.php

示例3: GetTTNDByID

 public static function GetTTNDByID($id)
 {
     $strSQL = "select * \r\n\t\t\t\t\t   from loaidichvu\r\n\t\t\t\t\t   where id='{$id}'";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     return mysql_fetch_array($result);
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:9,代碼來源:TTNhaDatDAO.php

示例4: GetAll

 public static function GetAll()
 {
     $strSQL = "\tselect * \r\n\t\t\t\t\t\tfrom user_role \t\t\t\t\r\n\t\t\t\t\t\t";
     $result = DataProvider::Query($strSQL);
     while ($row = mysql_fetch_array($result, MYSQL_BOTH)) {
         $return[] = $row;
     }
     return $return;
 }
開發者ID:realolliebee,項目名稱:closes-shop,代碼行數:9,代碼來源:RoleController.php

示例5: selectId

 public static function selectId($id)
 {
     $strSQL = "select * from donvidichvu where id='{$id}'";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     return mysql_fetch_row($result, MYSQL_BOTH);
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:9,代碼來源:DonViDichVuDAO.php

示例6: GetPhapLyById

 public static function GetPhapLyById($id)
 {
     $strSQL = "select *\r\n\t\t\t\t\tfrom tinhtrangphaply where id='{$id}'";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     return mysql_fetch_array($result);
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:9,代碼來源:PhapLyDAO.php

示例7: getALL

 public static function getALL()
 {
     $strSQL = "select * from loaidichvu";
     $result = DataProvider::Query($strSQL);
     while ($row = mysql_fetch_row($result, MYSQL_BOTH)) {
         $return[] = $row;
     }
     return $return;
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:9,代碼來源:LoaiDichVuDAO.php

示例8: GetHuongNhaById

 public static function GetHuongNhaById($id)
 {
     $strSQL = "select *\r\n\t\t\t\t\tfrom huongnha where id='{$id}'";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     return mysql_fetch_array($result);
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:9,代碼來源:HuongNhaDAO.php

示例9: delete

 public static function delete($id)
 {
     $strSQL = "delete from thuchi where id={$id}";
     $result = DataProvider::Query($strSQL);
     if (mysql_affected_rows() == 0) {
         return null;
     }
     return mysql_fetch_row($result, MYSQL_BOTH);
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:9,代碼來源:ThuChiDAO.php

示例10: GetAllTienIchId

 public static function GetAllTienIchId($id)
 {
     $strSQL = "select *\r\n\t\t\t\t\t   from tienich where id='{$id}'";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     return mysql_fetch_array($result);
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:9,代碼來源:TienIchDAO.php

示例11: selectID

 public static function selectID($id)
 {
     $strSQL = "select * from gioithieu where id='{$id}'";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     $row = mysql_fetch_row($result, MYSQL_BOTH);
     return $row;
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:10,代碼來源:GioiThieuDAO.php

示例12: getAllBySQL

 public static function getAllBySQL($strSQL)
 {
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     while ($row = mysql_fetch_row($result, MYSQL_BOTH)) {
         $return[] = $row;
     }
     return $return;
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:11,代碼來源:DiaOcPhapLyDAO.php

示例13: GetLevelByNhanVien

 public static function GetLevelByNhanVien()
 {
     $strSQL = "select * \r\n\t\t\t\t\t   from level\r\n\t\t\t\t\t   where idlevel<3";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     while ($row = mysql_fetch_array($result, MYSQL_BOTH)) {
         $return[] = $row;
     }
     return $return;
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:12,代碼來源:LevelDAO.php

示例14: getAllHinhAnhByDichVuID

 public static function getAllHinhAnhByDichVuID($iddichvu)
 {
     $strSQL = "Select * from hinhanh where iddichvu={$iddichvu}";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     while ($row = mysql_fetch_array($result, MYSQL_BOTH)) {
         $return[] = $row;
     }
     return $return;
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:12,代碼來源:HinhAnhDAO.php

示例15: GetTinVipById

 public static function GetTinVipById($id)
 {
     $strSQL = "select * from dichvuvip\r\n\t\t\t\t\t   where iddichvu='{$id}' and status=0";
     $result = DataProvider::Query($strSQL);
     if (mysql_num_rows($result) == 0) {
         return null;
     }
     while ($row = mysql_fetch_array($result, MYSQL_BOTH)) {
         $return[] = $row;
     }
     return $return;
 }
開發者ID:edconan93,項目名稱:real-estate-website,代碼行數:12,代碼來源:DichVuVIPDAO.php


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