I hope this will be a basic question for some of you – it’s my first major PHP project and I am picking it up as I go along.
Please can someone explain to me how to store a dynamic number of variables so that they can recalled on future pages. i.e. I wish to mimic the functionality of a shopping cart on a very basic level.
I am familiar with PHP sessions and static session variables, however, don’t really understand how to tackle the problem where the number of variables required is unknown. Some kind of array session variable perhaps?
Any help would be greatly appreciated.
Please can someone explain to me how to store a dynamic number of variables so that they can recalled on future pages. i.e. I wish to mimic the functionality of a shopping cart on a very basic level.
I am familiar with PHP sessions and static session variables, however, don’t really understand how to tackle the problem where the number of variables required is unknown. Some kind of array session variable perhaps?
Any help would be greatly appreciated.