本文整理汇总了PHP中database4::deleted_inventory方法的典型用法代码示例。如果您正苦于以下问题:PHP database4::deleted_inventory方法的具体用法?PHP database4::deleted_inventory怎么用?PHP database4::deleted_inventory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类database4
的用法示例。
在下文中一共展示了database4::deleted_inventory方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: database
<?php
include "../../myDatabase4.php";
include "../../myDatabase.php";
$search = $_GET['search'];
$ro4 = new database4();
$ro = new database();
$ro4->deleted_inventory($search, "medicine");
$myInventoryCode = [];
foreach ($ro4->deleted_inventory_inventoryCode() as $inventoryCode) {
array_push($myInventoryCode, ["inventoryCode" => $inventoryCode, "stockCardNo" => $ro->selectNow("inventory", "stockCardNo", "inventoryCode", $inventoryCode), "description" => $ro->selectNow("inventory", "description", "inventoryCode", $inventoryCode), "genericName" => $ro->selectNow("inventory", "genericName", "inventoryCode", $inventoryCode), "unitcost" => $ro->selectNow("inventory", "unitcost", "inventoryCode", $inventoryCode), "ipdPrice" => $ro->selectNow("inventory", "ipdPrice", "inventoryCode", $inventoryCode), "opdPrice" => $ro->selectNow("inventory", "opdPrice", "inventoryCode", $inventoryCode), "status" => $ro->selectNow("inventory", "status", "inventoryCode", $inventoryCode)]);
}
$json = json_encode($myInventoryCode);
echo $json;
示例2: database
<?php
include "../../myDatabase4.php";
include "../../myDatabase.php";
$search = $_GET['search'];
$ro4 = new database4();
$ro = new database();
$ro4->deleted_inventory($search, "supplies");
$myInventoryCode = [];
foreach ($ro4->deleted_inventory_inventoryCode() as $inventoryCode) {
array_push($myInventoryCode, ["inventoryCode" => $inventoryCode, "stockCardNo" => $ro->selectNow("inventory", "stockCardNo", "inventoryCode", $inventoryCode), "description" => $ro->selectNow("inventory", "description", "inventoryCode", $inventoryCode), "unitcost" => $ro->selectNow("inventory", "suppliesUNITCOST", "inventoryCode", $inventoryCode), "price" => $ro->selectNow("inventory", "unitcost", "inventoryCode", $inventoryCode), "status" => $ro->selectNow("inventory", "status", "inventoryCode", $inventoryCode)]);
}
$json = json_encode($myInventoryCode);
echo $json;