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


PHP DB::delete方法代码示例

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


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

示例1: bannerSil

 function bannerSil($sil)
 {
     $bannerSil = DB::delete("delete from banner where id = ?", array($sil));
     if ($bannerSil) {
         return Redirect::to('admin/bannerListele');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:7,代码来源:bannerListeleController.php

示例2: mesajSil

 function mesajSil($sil)
 {
     $mesajSil = DB::delete("delete from mesajlar where id = ?", array($sil));
     if ($mesajSil > 0) {
         return Redirect::to('admin/mesajlar');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:7,代码来源:mesajlarController.php

示例3: store

 public function store(SetupRequest $request)
 {
     DB::delete('delete from settings');
     DB::table('settings')->insert([['name' => 'name', 'value' => e($request->input('name'))], ['name' => 'cover', 'value' => 'images/cover.jpg'], ['name' => 'avatar', 'value' => 'images/avatar.png'], ['name' => 'bio', 'value' => e($request->input('bio'))], ['name' => 'email', 'value' => 'hsinlu@live.com'], ['name' => 'title', 'value' => e($request->input('title'))], ['name' => 'subtitle', 'value' => e($request->input('subtitle'))], ['name' => 'keywords', 'value' => e($request->input('keywords'))], ['name' => 'description', 'value' => e($request->input('description'))], ['name' => 'paginate_size', 'value' => 5]]);
     event(new \App\Events\DoneSetupEvent());
     return redirect('/');
 }
开发者ID:angelWendy,项目名称:streamlet,代码行数:7,代码来源:SetupController.php

示例4: urunSil

 function urunSil($urunsil)
 {
     $urunsil = DB::delete("delete from urunler where id = ?", array($urunsil));
     if ($urunsil > 0) {
         return Redirect::to('admin/urun');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:7,代码来源:urunController.php

示例5: yorumSil

 function yorumSil($sil)
 {
     $yorumSil = DB::delete("delete from yorumlar where id = ?", array($sil));
     if ($yorumSil > 0) {
         return Redirect::to('admin/urunYorum');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:7,代码来源:urunYorumController.php

示例6: icerikSil

 function icerikSil($iceriksil)
 {
     $iceriksil = DB::delete("delete from icerikler where id = ?", array($iceriksil));
     if ($iceriksil > 0) {
         return Redirect::to('admin/icerik');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:7,代码来源:icerikController.php

示例7: videoSil

 function videoSil($videoSil)
 {
     $videoSil = DB::delete("delete from videolar where id = ?", array($videoSil));
     if ($videoSil > 0) {
         return Redirect::to('admin/video');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:7,代码来源:videoController.php

示例8: sil

 public function sil($sil)
 {
     $data = DB::delete("delete from linkler where id=?", array($sil));
     if ($data > 0) {
         return Redirect::to('admin/linkler');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:7,代码来源:linklerController.php

示例9: haberSil

 function haberSil($habersil)
 {
     $habersil = DB::delete("delete from haberler where id = ?", array($habersil));
     if ($habersil > 0) {
         return Redirect::to('admin/haberler');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:7,代码来源:haberlerController.php

示例10: sil

 public function sil($id)
 {
     $silIslem = DB::delete("delete from kullanicilar where id = ?", array($id));
     //echo "<script>alert('".$silIslem."');</script>";
     if ($silIslem > 0) {
         return Redirect::to('admin/kullanicilar');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:8,代码来源:kullanicilarController.php

示例11: silData

 public function silData($sil)
 {
     // data silme işlemi
     $silIslem = DB::delete("delete from kullanicilar where id = ?", array($sil));
     //echo "<script>alert('".$silIslem."');</script>";
     if ($silIslem > 0) {
         return Redirect::to('veritabani');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:9,代码来源:veritabaniController.php

示例12: delete

 static function delete($id, $pass)
 {
     $entry = DB::select("SELECT password FROM Entries WHERE rowid=?", [$id]);
     if (Hash::check($pass, $entry[0]->password)) {
         DB::delete('DELETE FROM Entries WHERE rowid=?', [$id]);
         DB::delete('DELETE FROM Entries WHERE id_team=?', [$id]);
         return 1;
     }
     return 0;
 }
开发者ID:grit45,项目名称:EEISTI-Tournaments,代码行数:10,代码来源:Entry.php

示例13: sliderSil

 function sliderSil($sil)
 {
     $silenecek = DB::select("select yol from slider where id = ?", array($sil));
     $fileName = $silenecek[0]->yol;
     File::delete("slider/" . $fileName);
     $sliderSil = DB::delete("delete from slider where id = ?", array($sil));
     if ($sliderSil > 0) {
         return Redirect::to('admin/sliderYonetimi');
     }
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:10,代码来源:sliderController.php

示例14: olay

 public function olay()
 {
     $durum = Input::all();
     if (isset($durum["sil"])) {
         // silme işlemi
         $sil_id = $durum["topCategory"];
         $silIslem = DB::delete("delete from kategoriler where id = ?", array($sil_id));
     }
     return Redirect::to('admin/kategori');
 }
开发者ID:hakanozer,项目名称:laravelAdmin,代码行数:10,代码来源:kategoriController.php

示例15: silForm

 /**
  * Kullanıcı silme işlemi.
  * @param $kul_id
  * @return redirect
  */
 public function silForm($kul_id)
 {
     // Kullanıcı silme işlemi.
     $q = "DELETE FROM kullanicilar WHERE id = ?";
     $islem = DB::delete($q, array($kul_id));
     if ($islem) {
         $mesaj = "basarili";
     } else {
         $mesaj = "basarisiz";
     }
     return redirect("kullanicilar/liste")->with("mesaj", $mesaj);
 }
开发者ID:hramose,项目名称:Laravel5-Admin-3,代码行数:17,代码来源:KullanicilarController.php


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