his was written using a user defined function in PHP. This acts as a subscript within the script, where you are able to filter in any condtions, values or local variables into before proceeding into the larger script.