if (($item_number >=$first) && ($item_number <= $last)) { #### if (($scottnum >=$first) && ($scottnum <= $last)) {