PHP Inventory

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
TheOne112
Forum Newbie
Posts: 1
Joined: Mon Jul 02, 2012 3:29 pm

PHP Inventory

Post 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.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: PHP Inventory

Post by Celauran »

I'd start by moving the CSV file into a database.
User avatar
tr0gd0rr
Forum Contributor
Posts: 305
Joined: Thu May 11, 2006 8:58 pm
Location: Utah, USA

Re: PHP Inventory

Post by tr0gd0rr »

The function for reading CSV files line by line is fgetcsv
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: PHP Inventory

Post 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.
Post Reply