Jump to content


PHP Question - Storing...

  • Please log in to reply
1 reply to this topic

#1 Refused

  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 04 June 2006 - 01:36 AM

Ok i am a little stumped at the moment.

Ok lets say i have set up a MYSQL table and made a register and login script that is connected to the table, so i got a complete Register and login script made.
Now what i want is for data, that they aquire later on after they have registered, to be stored for each user into the database for each user.
Here is an example - Say it was an rpg
"Say a user/member clicked on a link to take them to a small town in a text based rpg. They then get a random event wich would say they found a bag of money, and there was 10 dollars in that bag."
So then that amount of money would be added to that users account for the RPG. Then in another part of the code, say maybe a mini profile, i can call that part with their amount of money and display it, and it keeps going up when they get more.

Maybe that was to hard to understand.

Ok its like the users post count on a forum. Each time the user makes a post it is added to the database and displayed in their mini profile.

So do you think you could show me how to do that?
I have tried but it has really stumped me.

[div align="center"][/div]

#2 trq

  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 04 June 2006 - 01:55 AM

You need to look into database normalization techniques. Learning database design and administration is just as big a subject (maybe even more so) as learning php itself.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users