本文整理汇总了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>
示例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 />
示例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>