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


PHP DataProvider::execNonQuery方法代码示例

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


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

示例1: delete

 public function delete()
 {
     $iProID = $this->iProID;
     $sql = "DELETE from products WHERE ProID =" . $iProID;
     DataProvider::execNonQuery($sql);
 }
开发者ID:luvyatyss,项目名称:nashop,代码行数:6,代码来源:Product.php

示例2: delete

 public function delete()
 {
     $iStatusID = $this->iStatusID;
     $sql = "DELETE from statuses WHERE StatusID =" . $iStatusID;
     DataProvider::execNonQuery($sql);
 }
开发者ID:luvyatyss,项目名称:nashop,代码行数:6,代码来源:Status.php

示例3: updateLastLogon

 public function updateLastLogon()
 {
     $id = $this->userID;
     $str_LastLogon = date_format($this->lastLogon, 'Y-m-d H:i:s');
     $sql = "update users set LastLogon = '{$str_LastLogon}'  " . "where UserID = " . $id;
     DataProvider::execNonQuery($sql);
     return true;
 }
开发者ID:luvyatyss,项目名称:nashop,代码行数:8,代码来源:User.php

示例4: insert

 public function insert()
 {
     $iOrderID = $this->oOrder->getOrderID();
     $iProID = $this->oProduct->getProID();
     $iQuantity = $this->iQuantity;
     $fPrice = $this->fPrice;
     $fAmount = $this->fAmount;
     $sql = "INSERT INTO orderdetails (OrderID, ProID,Quantity ,Price , Amount) VALUES " . "('{$iOrderID}' , {$iProID}, {$iQuantity}, {$fPrice} , {$fAmount} )";
     DataProvider::execNonQuery($sql);
 }
开发者ID:luvyatyss,项目名称:nashop,代码行数:10,代码来源:OrderDetail.php

示例5: delete

 public function delete()
 {
     $iDeviceID = $this->iDeviceID;
     $sql = "DELETE from devices WHERE DeviceID =" . $iDeviceID;
     DataProvider::execNonQuery($sql);
 }
开发者ID:luvyatyss,项目名称:nashop,代码行数:6,代码来源:Device.php

示例6: delete

 public function delete()
 {
     $CatProID = $this->iCatProID;
     $sql = "DELETE FROM categories WHERE CatProID = " . $CatProID;
     DataProvider::execNonQuery($sql);
 }
开发者ID:luvyatyss,项目名称:nashop,代码行数:6,代码来源:Category.php

示例7: delete

 public function delete()
 {
     $BraID = $this->iBraID;
     $sql = "DELETE from brands WHERE BraID =" . $BraID;
     DataProvider::execNonQuery($sql);
 }
开发者ID:luvyatyss,项目名称:nashop,代码行数:6,代码来源:Brand.php

示例8: update

 public function update()
 {
     $iOrderID = $this->iOrderID;
     $iStatus = $this->oStatus->getStatusID();
     $sql = sprintf("UPDATE orders SET StatusID = {$iStatus} " . "WHERE OrderID ={$iOrderID}");
     DataProvider::execNonQuery($sql);
 }
开发者ID:luvyatyss,项目名称:nashop,代码行数:7,代码来源:Order.php


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