Okay I understand what you are saying. But, I just want all information for the one customer number where the transtype=P. No other customer information should be shown.
$CustomerNumber is a fixed variable that contains the customer number from the database that corresponds to the user at the website.
How would I get the next row of data and get the $Data{"CustomerNumber"} from the database to test against the one on the website ($CustomerNumber) to execute the loop again for more information?