PHP Inventory
Moderator: General Moderators
PHP Inventory
I have a CSV file of inventory for a store. I want to write a PHP program that adds and subtracts items as they are ordered. I am new to PHP so any help to get me started would be greatly appreciated.
Re: PHP Inventory
I'd start by moving the CSV file into a database.
Re: PHP Inventory
The function for reading CSV files line by line is fgetcsv
Re: PHP Inventory
As Celauran said, if you are at all serious about setting up a store inventory, you simply must convert the csv file to a database. Yes, PHP can read and write csv files, but you would have to be mad to try to work with such files for a practical store inventory.