本文整理汇总了PHP中Update::search方法的典型用法代码示例。如果您正苦于以下问题:PHP Update::search方法的具体用法?PHP Update::search怎么用?PHP Update::search使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Update
的用法示例。
在下文中一共展示了Update::search方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$name = DB::getInstance()->get('suppliers', array('supplier_code', '=', $_POST["search"]));
if (!$name->count()) {
echo "<span class='status-not-available'> No supplier.</span>";
} else {
$code = $_POST["search"];
}
$arr = $dailysupply->myTotalSupplyOf6Months($supplier_code);
$todaydate = date('Y-m-d');
$todaydate = substr($todaydate, 5, 7);
// 2015-11-11
$datemonth = date('Y-m-d');
$datemonth = substr($datemonth, 0, 8);
$datemonth = $datemonth . "01";
//2015-11-02
$sup_name = $supplier->search('supplier_code', $supplier_code, 'f_name') . " " . $supplier->search('supplier_code', $supplier_code, 'l_name');
$aprate = $update->search('settings', 'date', $datemonth, 'approx_rate');
$thismonthkgs = DB::getInstance()->Getsum('approved_kgs', 'daily_supply', $supplier_code);
echo '
<dl class="dl-horizontal example1">
<p>Supplier details<p>
<dt>Code: </dt>
<dd>' . $supplier_code . '</dd>
<dt>Name: </dt>
<dd>' . $sup_name . '</dd>
<dt>NIC NO: </dt>
<dd>' . $supplier->search('supplier_code', $supplier_code, 'nic_no') . '</dd>
<dt>Approximate tea Rate: </dt>
<dd>Rs ' . $aprate . '</dd>
<dt>Supply kgs: </dt>
<dd>' . $thismonthkgs . ' Kg</dd>
<dt>Total income: </dt>
示例2: DBDailySupply
</section>
<!-- /.content -->
</div>
<!--/.col (left) -->
</div>
</div><!-- /.row -->
</section>
<!-- tab-1-1 END -->
</div><!-- /.tab-pane -->
<div class="tab-pane" id="tab_2-2">
<!-- http://www.johnmorrisonline.com/a-php-script-to-search-a-mysql-database/ http://www.vaaah.com/php/view/Search/29/How-to-search-and-retrieve-data-from-MySQL-database-using-PHP -->
<?php
$msg_id = Input::get('id');
$supplier_code = $update->search('message_temp', 'message_id', $msg_id, 'supplier_code');
require_once 'db/dbdailysupply.php';
$dailysupply = new DBDailySupply();
$arr = $dailysupply->myTotalSupplyOf6Months($supplier_code);
$todaydate = date('Y-m-d');
$todaydate = substr($todaydate, 5, 7);
// 2015-11-11
$sup_name = $supplier->search('supplier_code', $supplier_code, 'f_name') . " " . $supplier->search('supplier_code', $supplier_code, 'l_name');
$view = DB::getInstance()->getall("message_temp");
$datemonth = date('Y-m-d');
$datemonth = substr($datemonth, 0, 8);
$datemonth = $datemonth . "01";
//2015-11-02
$thismonthkgs = DB::getInstance()->Getsum('approved_kgs', 'daily_supply', $supplier_code);
$code = $supplier_code;
$reqval = $update->search('message_temp', 'message_id', $msg_id, 'value');