<?php include_once "Lookups.php"; $lus = new Lookups(); $retval = $lus->GetAllLUItems(); // success? if ($retval == 0) { $arr = $lus->getLookupList(); foreach ($arr as $item) { $luname = $item[0]; $obj = $item[1]; if ($luname == "InventoryStatusLU") { echo "Name:" . $luname . ", ID:" . $obj->ID . "\n"; } } } echo "\n Now by name \n"; $itemName = "InventoryStatusLU"; $retval = $lus->getLookupByName($itemName); // success? if ($retval == 0) { $arr = $lus->getLookupList(); foreach ($arr as $item) { echo "Name:" . $item->Name . ", ID:" . $item->ID . "\n"; } } echo "\n Now by name by ID \n"; $retval = $lus->getItemNameByID(1); echo "ID: 1, name:" . $retval . "\n"; echo "\n Get the user names\n"; include_once "UserLU.php";