12-27-2007, 08:42 AM
|
#1 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
|
Millions of actions from one variable?
Okay... I was wondering about this... you have an item. The item costs a dollar. you make several hundred things displaying the item all over your site in different fashions. You change the price all over your site by editing the variable $price
you want to add another item, and plan to keep adding items and changing attributes regularly. what would be the easiest way? Arrays and foreach statements littered across the code? some kind of OOP thing (I have not the slightest clue how to use OOP?) This sounds like a gallery system...
|
|
|