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


PHP table::remove方法代碼示例

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


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

示例1: loadPage

<?php

$tbl = new table('user');
if (isset($_POST["update"])) {
    if (isset($_POST["del"])) {
        $del = $_POST["del"];
        // remove($arr,$field='id')
        $tbl->remove($del, 'username');
    }
}
?>
<div id="center-column">
			<div class="top-bar">
				<a href="<?php 
echo loadPage('addmember');
?>
" class="button"><img src="img/add-folder-icon.png" width="30" height="30" border="0" />  </a>
				<h1>Thành viên</h1>
				<div class="breadcrumbs"><a href="#">Homepage</a> / <a href="#">Member</a></div>
			</div><br />
			<form method="post">
		  <div class="select-bar">
		    <label>
		    <input type="text" name="key" id="key" />
		    </label>
		    <label>
			<input type="submit" name="search" value="Search" id="search" />
			</label>
		  </div>
		  	</form>
		  
開發者ID:aile54,項目名稱:akachan,代碼行數:30,代碼來源:member.php

示例2: loadPage

<?php

$tbl = new table('category_adv');
// proccess update
if (isset($_POST["update"])) {
    // delete
    if (isset($_POST["del"])) {
        $del = $_POST["del"];
        // remove($arr,$field='id')
        $tbl->remove($del, 'id');
    }
    // published
    if (isset($_POST["published"])) {
        $published = $_POST["published"];
        $start = $_POST["start"];
        $limit = $_POST["limit"];
        // updateCheck($arrId,$field,$start=0,$limit=100,$value=1,$where='id',$order='order by id desc')
        $tbl->updateCheck($published, 'published', $start, $limit);
    }
}
?>

<div id="center-column">
			<div class="top-bar">
				<a href="<?php 
echo loadPage('addcategory_adv');
?>
" class="button" ><img src="img/add-folder-icon.png" width="30" height="30" border="0" />  </a>
				<h1>category_adv</h1>
				<div class="breadcrumbs"><a href="#">Homepage</a> / <a href="#">category_adv</a></div>
			</div><br />
開發者ID:aile54,項目名稱:akachan,代碼行數:31,代碼來源:category.php

示例3: table

<?php

$tbl = new table('orders');
if (isset($_POST["update"])) {
    if ($_POST["del"]) {
        $del = $_POST["del"];
        /* remove ordersdetails first */
        $tblDetails = new table('ordersdetails');
        $tblDetails->remove($del, 'orderid');
        // remove($arr,$field='id')
        $tbl->remove($del, 'id');
    }
}
?>
<div id="center-column">
			<div class="top-bar">
		    <h1>Orders</h1>
				<div class="breadcrumbs"><a href="#">Homepage</a> / <a href="#">Orders</a></div>
			</div><br />
			<form method="post">
		  <div class="select-bar">
		    <label>
		    <input type="text" name="key" id="key" />
		    </label>
		    <label>
			<input type="submit" name="search" value="Search" id="search" />
			</label>
		  </div>
		  	</form>
		  
		  
開發者ID:aile54,項目名稱:akachan,代碼行數:29,代碼來源:orders.php


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