I am a week into PHP so forgive my ignorance. I have attached an image of what I am trying to do with a PHP script. I cannot use a database at this point. I have a text file that is comma delimmeted that is known as the inventory. I need to use a PHP script to read this information in a particular format and order on the screen as the "live" inventory we have on hand. Then the customer will select how many of each item they want and this will reduce each inventory item by that quantity. I have an image of what it needs to look like that is coded with HTML but I need to find out how to do it with PHP code. I understand that I will probably use a file pointer and fopen($inventory.txt, "a+") but how do I get it to print in the correct order? How do I display an array from a text file and can I save an array to a text file?