Storing data in PHP

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

Storing data in PHP

Post by Xaos »

How do you stole data in PHP over time of a session ,preferably not using a DB? IE I want to be able to have the user "spin" the game, and based on the last spin results, the results for this spin are effected. Sorry if that's unclear, lol.
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Storing data in PHP

Post by OldRod »

You can use session variables

http://php.about.com/od/advancedphp/ss/ ... ions_2.htm

Is that kind of what you are talking about?
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

Re: Storing data in PHP

Post by Xaos »

OldRod wrote:You can use session variables

http://php.about.com/od/advancedphp/ss/ ... ions_2.htm

Is that kind of what you are talking about?

Yup, thanks. Would I just make like year1, year2, etc. as a variable to keep all of them stored? I assume so
Post Reply

Return to “Beginner Help and Support”