|
Posted by Ψrjan Langbakk on 10/09/68 11:55
I wanna make a file that holds the complete pricelist for a small
webshop (yes, I know that a database in the background would be a lot
simpler, but that is not an option today, unfortunately).
I'm thinking something like creating a file that holds the productname
and the price, and then just get the price from the other pages that
needs it. (Typically an overview page of all the products in a category,
and the spesific product pages).
I'm thinking it would be possible to create something like:
#Product 1
$produkt1 = 2000
#produkt 2
$produkt2 = 1400
and so on
Is this a good way to create this?
And what is the best way to get the informatin into the file that needs
to parse it? $GET? or something else entirely?
--
mvh
Γrjan Langbakk
http://www.bergenpchjelp.no
http://www.cubic-design.net
Navigation:
[Reply to this message]
|