本文整理匯總了PHP中item::find_item_number_by_itemNumber_OrgId方法的典型用法代碼示例。如果您正苦於以下問題:PHP item::find_item_number_by_itemNumber_OrgId方法的具體用法?PHP item::find_item_number_by_itemNumber_OrgId怎麽用?PHP item::find_item_number_by_itemNumber_OrgId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類item
的用法示例。
在下文中一共展示了item::find_item_number_by_itemNumber_OrgId方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: org
<?php
include_once "../../../includes/basics/basics.inc";
//primary column 1 is org_id
global $db;
$org = new org();
// if the 'term' variable is not sent with the request, exit
if (!isset($_REQUEST['term'])) {
echo "exit";
exit;
} else {
$item_number = $_REQUEST['term'];
if (!empty($_GET['primary_column1'])) {
$org_id = $_GET['primary_column1'];
} else {
$master_org = $org->findAll_item_master();
$org_id = $master_org[0]->org_id;
}
//echo $org_id;
$data = item::find_item_number_by_itemNumber_OrgId($item_number, $org_id);
// jQuery wants JSON data
$json = json_encode($data);
print $json;
//
}