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


PHP DBUtil::getResultRowsOfPrepatedQuery方法代码示例

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


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

示例1: getImgAddressById

 public static function getImgAddressById($id)
 {
     $query = "SELECT ia.id, r.id AS region_id, r.code AS rcode, r.name AS rname, ia.sity, ia.street, ia.house \n\t\t\tFROM img_address AS ia \n\t\t\tJOIN addr_region AS r on ia.region_id = r.id\n\t\t\tWHERE ia.id = ?";
     $imgAddreses = DBUtil::getResultRowsOfPrepatedQuery($query, "i", $id);
     return $imgAddreses[0];
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:ImgAddressUtil.php

示例2: getSysNewsCatByID

 public static function getSysNewsCatByID($sysNewsCatID)
 {
     $query = "SELECT  `id`,  `name`,  `pid`  FROM `sys_news_cat` WHERE `id` = ?";
     $sysNewsCats = DBUtil::getResultRowsOfPrepatedQuery($query, "i", $sysNewsCatID);
     return $sysNewsCats[0];
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:SysNewsCatUtil.php

示例3: getImgBlogCatsByAccountId

 public static function getImgBlogCatsByAccountId($account_id)
 {
     $query = "SELECT  `id`, `account_id`, `name`,  `pid` FROM `img_blog_cat` WHERE `account_id` = ?";
     $imgBlogCats = DBUtil::getResultRowsOfPrepatedQuery($query, "i", $account_id);
     return $imgBlogCats;
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:ImgBlogCatUtil.php

示例4: getImgCurrencies

 public static function getImgCurrencies()
 {
     $query = "SELECT  `id`,  `name`,  `weight` FROM  `img_currency`";
     $imgCurrencies = DBUtil::getResultRowsOfPrepatedQuery($query);
     return $imgCurrencies;
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:ImgCurrencyUtil.php

示例5: getOrderById

 public static function getOrderById($orderID, $accountID)
 {
     $query = "SELECT  o.id,  o.u_email, o.u_name, o.u_phone, o.u_comment,  o.c_date , oacc.sended\n                    FROM `order` as o\n                    JOIN order_account_sended as oacc ON oacc.order_id = o.id\n                    WHERE o.`id` = ? AND oacc.img_account_id = ?";
     $orders = DBUtil::getResultRowsOfPrepatedQuery($query, "ii", $orderID, $accountID);
     return $orders[0];
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:OrderUtil.php

示例6: getSysNewsArtsByFilter

 public static function getSysNewsArtsByFilter($sys_news_cat_id, $ptile, $start, $lenght)
 {
     $query = "SELECT `id`,  `sys_news_cat_id`,  `title`,  `preview`,  `c_date`,  `main_pict_id`\n\t\t\tFROM `sys_news_art` WHERE 1 = 1 ";
     $ptile = trim($ptile);
     if (NULL != $sys_news_cat_id) {
         $query .= "AND `sys_news_cat_id` = ? ";
     }
     if (0 != strcmp("", $ptile)) {
         $query .= "AND upper(`title`) LIKE upper(?) ";
     }
     $query .= "ORDER BY `c_date` DESC LIMIT ?, ?";
     if (NULL != $sys_news_cat_id && 0 != strcmp("", $ptile)) {
         $ptile = "%" . $ptile . "%";
         $sysNewsArts = DBUtil::getResultRowsOfPrepatedQuery($query, "isii", $sys_news_cat_id, $ptile, $start, $lenght);
     } else {
         if (NULL != $sys_news_cat_id) {
             $sysNewsArts = DBUtil::getResultRowsOfPrepatedQuery($query, "iii", $sys_news_cat_id, $start, $lenght);
         } else {
             if (0 != strcmp("", $ptile)) {
                 $ptile = "%" . $ptile . "%";
                 $sysNewsArts = DBUtil::getResultRowsOfPrepatedQuery($query, "sii", $ptile, $start, $lenght);
             } else {
                 $sysNewsArts = DBUtil::getResultRowsOfPrepatedQuery($query, "ii", $start, $lenght);
             }
         }
     }
     return $sysNewsArts;
 }
开发者ID:evg299,项目名称:s4u,代码行数:28,代码来源:SysNewsArtUtil.php

示例7: findImgGdsCatIdByProductId

 private static function findImgGdsCatIdByProductId($account_id, $productId)
 {
     $query = "SELECT  igc.id as id FROM img_gds_cat igc JOIN img_gds ig ON igc.id = ig.img_gds_cat_id \n\t\tWHERE igc.account_id = ? AND ig.id = ?";
     $imgGdsCatIds = DBUtil::getResultRowsOfPrepatedQuery($query, "ii", $account_id, $productId);
     return $imgGdsCatIds[0]['id'];
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:ImgGdsCatUtil.php

示例8: getPropertyValue

 public static function getPropertyValue($key)
 {
     $query = "SELECT `value` FROM `sys_properties` WHERE `name` = ?";
     $props = DBUtil::getResultRowsOfPrepatedQuery($query, "s", $key);
     return $props[0]['value'];
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:SysPropertiesUtil.php

示例9: getImgBlogArtBlocksByArtId

 public static function getImgBlogArtBlocksByArtId($artId)
 {
     $query = "SELECT  `id`,  `img_blog_art_id`,  `block_type`,  `text_content`,  \n            `img_picture_id`,  `pict_desc`,  `order_in_art` \n            FROM `img_blog_art_block`\n            WHERE `img_blog_art_id` = ? ORDER BY `order_in_art` ASC";
     $imgBlogArtBlocks = DBUtil::getResultRowsOfPrepatedQuery($query, "i", $artId);
     return $imgBlogArtBlocks;
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:ImgBlogArtBlockUtil.php

示例10: getOrderAccsToMailMessage

 public static function getOrderAccsToMailMessage($orderID)
 {
     $query = "select DISTINCT o.id as oid, iacc.id as accid, iacc.email as accemail, o.u_email as oemail from img_gds as igds \n                    join img_account iacc on igds.img_account_id = iacc.id\n                    join order_gds ogds on ogds.img_gds_id = igds.id\n                    join `order` o on ogds.order_id = o.id\n                    where o.id = ?";
     $orderAccs = DBUtil::getResultRowsOfPrepatedQuery($query, "i", $orderID);
     return $orderAccs;
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:OrderAccountSendedUtil.php

示例11: getSysStaticPageBlocksByPageId

 public static function getSysStaticPageBlocksByPageId($pageId)
 {
     $query = "SELECT  `id`,  `sys_static_page_id`,  `block_type_id`,  `image_id`,  `image_title`,  `text_content`,  `order_in_page`  FROM  `sys_static_page_blocks` WHERE `sys_static_page_id` = ? ORDER BY `order_in_page` ASC";
     $sysStaticPageBlocks = DBUtil::getResultRowsOfPrepatedQuery($query, "i", $pageId);
     return $sysStaticPageBlocks;
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:SysStaticPageBlocksUtil.php

示例12: getImgGdsProps

 public static function getImgGdsProps($imgGdsId)
 {
     $query = "SELECT  `id`,  `img_gds_id`,  `name`,  `value` FROM `img_gds_prop` WHERE `img_gds_id` = ?";
     $imgGdsProps = DBUtil::getResultRowsOfPrepatedQuery($query, "i", $imgGdsId);
     return $imgGdsProps;
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:ImgGdsPropUtil.php

示例13: getSysAdminByLastUUID

 public static function getSysAdminByLastUUID($lastUUID)
 {
     $query = "SELECT  `id`,  `login`,  `password`,  `lastuuid` FROM `sys_admins` WHERE `lastuuid` LIKE ?";
     $sysAdmins = DBUtil::getResultRowsOfPrepatedQuery($query, "s", $lastUUID);
     return $sysAdmins[0];
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:SysAdminsUtil.php

示例14: getImgGdssForOrder

 public static function getImgGdssForOrder($accountID, $orderID)
 {
     $query = "select igds.id, igds.name, igds.UUID, igds.main_pict_id, igds.price, \n                ic.name as price_name, ogds.count_gds from img_gds igds\n                    join order_gds ogds on igds.id = ogds.img_gds_id\n                    join `order` o on o.id = ogds.order_id\n                    join img_currency ic on ic.id = igds.currency_id\n                where o.id = ? and igds.img_account_id = ?";
     $imgGdss = DBUtil::getResultRowsOfPrepatedQuery($query, "ii", $orderID, $accountID);
     return $imgGdss;
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:ImgGdsUtil.php

示例15: getSysNewsArtBlockById

 public static function getSysNewsArtBlockById($sysNewsArtId)
 {
     $query = "SELECT  `id`,  `sys_news_art_id`,  `image_id`,  `image_title`,  `text_content`,  `block_type`,  `order_in_art` FROM `sys_news_art_block` WHERE `id` = ? ";
     $sysNewsArtBlocks = DBUtil::getResultRowsOfPrepatedQuery($query, "i", $sysNewsArtId);
     return $sysNewsArtBlocks[0];
 }
开发者ID:evg299,项目名称:s4u,代码行数:6,代码来源:SysNewsArtBlockUtil.php


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