Page 1 of 1

Storing data in PHP

Posted: Wed Sep 25, 2013 1:48 pm
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.

Re: Storing data in PHP

Posted: Wed Sep 25, 2013 3:13 pm
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?

Re: Storing data in PHP

Posted: Wed Sep 25, 2013 3:30 pm
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