Page 1 of 1
PHP Inventory
Posted: Mon Jul 02, 2012 3:32 pm
by TheOne112
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
Posted: Mon Jul 02, 2012 3:38 pm
by Celauran
I'd start by moving the CSV file into a database.
Re: PHP Inventory
Posted: Mon Jul 09, 2012 3:02 pm
by tr0gd0rr
The function for reading CSV files line by line is
fgetcsv
Re: PHP Inventory
Posted: Mon Jul 09, 2012 5:29 pm
by califdon
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.