當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。